Re: executing a file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



My command looked like:
stAppName = "C:\Perl\bin\perl.exe C:\Documents and
Settings\myname\mydir\myfile.pl"
I had tried the double quotes but missed the triples which was giving a
syntax error. My command now has quotes as per your example. However, the
results are the same. I see the DOS command window flash and disappear. The
perl script has not executed.
Any other ideas?
Thank you.

--
Linda


"Douglas J. Steele" wrote:

Exactly what are you passing as the argument to the Shell command? While you
may be able to simply type "file.pl" in a command prompt and have it run, I
believe you need to pass "perl.exe file.pl" to Shell.

In fact, you may need the full path fo perl.exe (and, of course, to the perl
file being run). If there are spaces in the paths, you'll need extra quotes:

"""C:\Program Files\Perl\Perl.exe"" ""C:\Some Folder\file.pl"""

(That's three double quotes at the beginning and end of the string, and a
couple of pairs of double quotes, with a space between the pairs, in the
middle)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Linda" <Linda@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B5BA1890-B517-4ED4-BEE9-E8C056C6631D@xxxxxxxxxxxxxxxx
Thanks, I tried the shell command attached to a click on a button. I get
no
errors and I see a very quick flash of what appears to be a DOS command
window but it is gone before any contents can be seen. The perl file
called
doesn't execute. Any further suggestions?
--
Linda


"Daniel" wrote:

If it is a seperate file you could use the shell command.
--
Hope this helps,

Daniel P






"Linda" wrote:

I would like to execute a perl script from one of the switchboard
selections.
Does anyone know how to do that?
Thanks.
--
Linda



.



Relevant Pages

  • Re: [SLE] bash Script Using Filenames with Embedded Spaces
    ... If it is a literal space for the ls command, ... wonder what effect the quotes will have placed in different places ... Antonio Vivaldi-Gloria Dixit Dominus Magnificat Choir of Kings College ...
    (SuSE)
  • Re: [SLE] bash Script Using Filenames with Embedded Spaces
    ... If it is a literal space for the ls command, ... wonder what effect the quotes will have placed in different places ... Antonio Vivaldi-Gloria Dixit Dominus Magnificat Choir of Kings College ...
    (SuSE)
  • Re: [SLE] bash Script Using Filenames with Embedded Spaces
    ... command, then it must be a literal space for any other command. ... Antonio Vivaldi-Gloria Dixit Dominus Magnificat Choir of Kings ... College Cambridge and the Academy of Ancient Music.m3u ... command is placed inside double quotes, I get the expected ls output: ...
    (SuSE)
  • Re: Bash commands: maybe they want to drive us crazy?
    ... Bill Unruh wrote: ... single quotes would cause the find command to expand the * ... Which means that a shell command and the shell itself are two very different ...
    (comp.os.linux.misc)
  • Re: Sophisticated(!) copying in DOS
    ... Try running from the command line rather than batch file till it works. ... Try using shorter path or local drive for the exclude file. ... folks, I KNOW I shouldn't put double-quotes inside double quotes, but I sure ...
    (microsoft.public.windowsxp.general)