May 25, 2011, 2:20 AM
Post #1 of 2
Error while invoking .vbs script using system() function.
I am using a perl script to invoke a .vbs file which will install a software. I want my cscript command to be executed at a particular directory where I have the binaries. And I am making use of system function. I will append the path to the cscript command inside system function. Then it will throw error telling cscript is not recognized, but if I execute cscript from the directory where my perl script is running then it will invoke the vbs script. Please any help will be appreciated.
[$cmd=$bin_Path ."cscript opc_inst.vbs -configure" . $conf_Path ." -inst_dir " . $inst_dir_Path . "-data_dir " . $data_dir;