Re: system() produces error.
From: thundergnat (thundergnat_at_hotmail.com)
Date: 08/24/04
- Next message: Tom: "Perl Question"
- Previous message: cmika_at_-takethisout-25thandclement.com: "Parsing mailboxes"
- In reply to: Nathalie: "Re: system() produces error."
- Next in thread: nobull_at_mail.com: "Re: system() produces error."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 24 Aug 2004 12:05:08 -0400
Nathalie wrote:
> I too have the error "Can't spawn "cmd.exe": No such file or directory
> at line "
>
>
> If I issue the command manually on the command line, then
> it doesn't work, but the error "Can't spawn "cmd.exe": No such file or
> directory at line" doesn't appear.
>
> In either case, a window opens and tells me that the program UNKNOWN
> that I've called cannot work properly and that it has to be closed.
>
> My syntax is
> system "C:\\Program Files\\Programmes LINKAGE\\unknown";
>
> I know that the UNKNOWN program works properly, because it works on an
> other data set.
This is only peripherally perl related.
In the DOS command window, when calling parameters have a space in them,
you need to enclose them in double quotes. Try something like:
system "\"C:\\Program Files\\Programmes LINKAGE\\unknown\"";
or even better:
system '"C:\Program Files\Programmes LINKAGE\unknown"';
This news group is doesn't exist. Please use comp.lang.perl.misc in the
future.
- Next message: Tom: "Perl Question"
- Previous message: cmika_at_-takethisout-25thandclement.com: "Parsing mailboxes"
- In reply to: Nathalie: "Re: system() produces error."
- Next in thread: nobull_at_mail.com: "Re: system() produces error."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|