in reply to Problem using system to call securecrt

Did you try using the full path in the system call ?
Try doing :  system ( "$full_path_to_exe", "xyz.vbs" )

One more thing : you don't need to write the path with \ in perl .
You can say :
$full_path_to_exe =" C:/Program Files/SecureCRT 3.0/securecrt.exe"

Update : Well, sorry : now i see that your problem is with the space in "Program Files" . See this 421595 where bart gives this solution :

my $prog = "c:\\program files\\agent\\agent.bat"; system(qq("$prog"));

ZlR

Replies are listed 'Best First'.
Re^2: Problem using system to call securecrt
by ikegami (Patriarch) on Feb 07, 2005 at 15:55 UTC

    No, the unquoted space is only a problem for (single-argument) system. chdir has no problems with spaces:
    C:\>perl -e "chdir 'c:/documents and settings'; system 'dir';"
    lists the contents of C:\Documents and Settings.