Note that there are some explanatory texts on larger screens.

plurals
  1. POc# works on 32bit but not 64bit
    primarykey
    data
    text
    <p>The code below works perfectly on my 32bit machine but I have tested the code now on my 64bit machine, I expected it to work as I was calling the 64bit version of the cscript.exe. Instead the code gets to the point where it runs the script and then waits for exactly 30seconds then exits the script and continues the rest of the program. The script however appears not to run, (it works fine if I run it manually). Any help would be greatly appreciated. Thanks</p> <pre><code> using (var ServerProcess = new System.Diagnostics.Process()) { var fileInformation = new FileInfo(VBScriptToRun); string processFileName = IntPtr.Size == 8 ? @"c:\windows\sysWOW64\cscript.exe " : @"c:\windows\system32\cscript.exe "; string processWorkDir = IntPtr.Size == 8 ? @"c:\windows\sysWOW64\" : @"c:\windows\system32\"; string processArguments = fileInformation.FullName; ServerProcess.StartInfo.FileName = processFileName; ServerProcess.StartInfo.WorkingDirectory = processWorkDir; ServerProcess.StartInfo.Arguments = processArguments; ServerProcess.StartInfo.CreateNoWindow = false; ServerProcess.StartInfo.UseShellExecute = false; ServerProcess.StartInfo.RedirectStandardOutput = true; ServerProcess.StartInfo.LoadUserProfile = true; EventLogger.Instance.WriteInformation("Total Integration Service Processing File: Starting to launch the specified program"); try { ServerProcess.Start(); ServerProcess.WaitForExit(); }catch(Exception e) { EventLogger.Instance.WriteInforamtion("Error running script: " + e) } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload