in reply to How do I run a .bat file?
In general, on a windows machine, you need to specify a binary executable. So you can't run .bat files directly.
Fortunately, command.com does know how to run .bat files. So if you change your call to:
you should be alright (subject to having to specify where command is (hopefully you don't need to).system ("command.com /c d:\webmaster\cgi-bin\comb.bat");
Then again, the above answers might be the right ones: I don't use perl on windows
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do I run a .bat file?
by tye (Sage) on Oct 24, 2001 at 23:03 UTC | |
by Etelka (Novice) on Oct 25, 2001 at 05:08 UTC | |
by tye (Sage) on Oct 25, 2001 at 18:05 UTC | |
by premchai21 (Curate) on Oct 25, 2001 at 05:18 UTC | |
|
Re: Re: How do I run a .bat file?
by data64 (Chaplain) on Oct 24, 2001 at 05:55 UTC | |
|
Re: Re: How do I run a .bat file?
by Etelka (Novice) on Oct 24, 2001 at 05:05 UTC | |
by tommyw (Hermit) on Oct 24, 2001 at 05:13 UTC |