A
Amish Rughoonundon
Hi,
here is my problem. I have a perl script that executes multiple
command line calls as follows:
system("XCOPY", "$s_currentWorkingDirectory\\KCPSM3.EXE",
$s_tempLocation, "/R", "/Y") == 0 or die "File KCPSM3.EXE could not be
copied: $!\n";
system("XCOPY", "$s_currentWorkingDirectory\\ROM_form.coe",
$s_tempLocation, "/R", "/Y") == 0 or die "File ROM_form.coe could not
be copied: $!\n";
This is an example. There are many more with different programs being
called.
My problem is that I need to set the path to a certain batch file
before calling the programs.
It seems everytime I call system though, perl open a command window,
executes the program and closes the window.
So even if I set the path at the beginning, once system is done
running, the path disappears.
Can I force perl to run everything into only 1 command window.
I hope I was clear with my question. Thanks a lot for the help,
Amish
here is my problem. I have a perl script that executes multiple
command line calls as follows:
system("XCOPY", "$s_currentWorkingDirectory\\KCPSM3.EXE",
$s_tempLocation, "/R", "/Y") == 0 or die "File KCPSM3.EXE could not be
copied: $!\n";
system("XCOPY", "$s_currentWorkingDirectory\\ROM_form.coe",
$s_tempLocation, "/R", "/Y") == 0 or die "File ROM_form.coe could not
be copied: $!\n";
This is an example. There are many more with different programs being
called.
My problem is that I need to set the path to a certain batch file
before calling the programs.
It seems everytime I call system though, perl open a command window,
executes the program and closes the window.
So even if I set the path at the beginning, once system is done
running, the path disappears.
Can I force perl to run everything into only 1 command window.
I hope I was clear with my question. Thanks a lot for the help,
Amish