ForumMaster
Diamond Member
I'm writing a small GUI that supposed to run a .bat file on each of our cognos servers to reset the services properly.
The file will always be located in say:
\\servername\c$\Program Files (x86)\cognos\c8_64\bin64\cogconfig.bat
So from visual studio, i want to basically be able to run the batch file. But i has to be in the working directory to access files like the jre.
If i create a ProcessStartInfo instance,
does the instance.WorkingDirectory feature support UNC path?
does anyone know how to get this to work?
MS support suggest that from the command line, you can use the PUSHD command to temporarily map a UNC path to a network drive so that the CMD can use it.
Anyone have any suggestions? Thanks in advance.
The file will always be located in say:
\\servername\c$\Program Files (x86)\cognos\c8_64\bin64\cogconfig.bat
So from visual studio, i want to basically be able to run the batch file. But i has to be in the working directory to access files like the jre.
If i create a ProcessStartInfo instance,
does the instance.WorkingDirectory feature support UNC path?
does anyone know how to get this to work?
MS support suggest that from the command line, you can use the PUSHD command to temporarily map a UNC path to a network drive so that the CMD can use it.
Anyone have any suggestions? Thanks in advance.