in reply to Executing series of system commands in a shell(cmd.exe)
NOTE: I don't want to use Windows batch script to execute the commands
Why not? It looks like a batch script, so why not execute it as batch?
If you're determined to rewrite it in perl, you'll have to do a lot of reading about OS interaction, for example system and ENV, and have to do the rewrite yourself, replace shell variables by perl variables and so on.
|
|---|