I have a perl script that goes out and executes a handful of batch scripts. I am only using these batch scripts because batch can parse through a directory of 1000s of files a lot faster than perl, or at least I can't find an fast way in perl to do it. Right now the code is local, so I was using a directory path based on how I mapped my drives to start the scripts, like this:
system("start J:/scoreboard/scripts/Actual/update_current_build.bat "."\"$rows[0][$count]\" "."\"*\" "."\"$output_file\"");
I need to make it more portable so that it can run from any machine. I tried using the server path, but when the batch script executes it says that I have an 'Invalid switch - "/".
system("start //server/share/scoreboard/scripts/Actual/update_current_standards.bat "."\"$output_file\"");
So my ultimate question is, how do I start a batch script using the server path?