> -----Original Message-----
> From: Gary Hawkins [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 29 2001 11:21 PM
> To: Rubiniec, Krzysztof; [EMAIL PROTECTED]
> Subject: RE: Calling external executable with parameter under WinNT.
>
>
> #!perl.exe
>
> $name="C:\\perl test\\perl text.txt";
> `"$name"`;
>
> ....runs Notepad with the txt file under Windows 2000.
>
> The double quotes in `"$name"`; are needed for cmd.exe due to
> the spaces.
Thank you, Gary, but the problem I have is elsewhere:
$batch="C:\\winnt\\notepad.exe";
$name="C:\\www for SDC\\perl text.txt";
`"$name"`;
# works as you have told
`"$batch"`;
# starts notepad itself
`"$batch" "$name"`;
#! doesn't work - and that's the clue of my problems
and also system doesn't want to work with $batch and $name as it's parameter
sincerely
krzysztof
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]