Re: executing a file
- From: Linda <Linda@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Sep 2007 09:56:01 -0700
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
- Follow-Ups:
- Re: executing a file
- From: Douglas J. Steele
- Re: executing a file
- References:
- Re: executing a file
- From: Douglas J. Steele
- Re: executing a file
- Prev by Date: Re: tab control
- Next by Date: Re: Date/Time field
- Previous by thread: Re: executing a file
- Next by thread: Re: executing a file
- Index(es):
Relevant Pages
|