for reg.exe i presume you are using the REG IMPORT function with the reg file. perhaps try and use reg.exe in your vbs as cmdline adding of your keys with the ADD switch instead of looking for the "missing" .reg file ? Code: example: reg add "HKLM\SOFTWARE\Microsoft\Office\14.0\Registration\{90140000-003B-0000-0000-0000000FF1CE}" /f /v "LicenseType" /t REG_DWORD /d 7
at the base the .net process class is calling that function depending on what you tell the startinfo props to do can i see some of your code. it would be helpful if we could see the snippet
when you run the process did you set the current directory//working directory to temp also. if you didnt it will tell the script that it is being ran off of the Network drive or path when the file is in the TEMP folder. making it so the script doesnt know where the reg files are because those are in the temp also???
oh ok i was just tyring to clear things up... would it be something stupid like spaces in the path? maybe add chr(34) to the start of the path and chr(34) to the end of the path... ive ran into problems because of that Code: Result result = CommonUtilities.ExecuteCommand("cscript " + Chr(34) + saveAsName + Chr(34) + " All /DeleteUserSettings /Force /OSE /Quiet", true);
ok run this command to you see what im saying sc create a a then run this command sc create "a a" the first one fails because the system is telling it that a a is two different arguments the second one works because the system is saying "a a" is one argument to undo this thing just run sc delete "a a"