Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Error using 'Windows Script Host Object Model'.WshShell' on 2013 R2 RTC

$
0
0
I'm getting the following error after Notepad is closed and final command is executed successfully before returning to calling page.

"The Server was unable to process the request. Close the application and start again"


After the error the client crashes and I have to restart it. My code is below. I've tried instantiating on both the client and the server and I get the same error. In debug, the code executes fine until it tries to display the page it was called from. Any and all help would be appreciated.


IF ISCLEAR(WindShell) THEN
CREATE(WindShell,FALSE,ISSERVICETIER);

WindowDir := Environ1.GetEnvironmentVariable('windir');
WinType := 1;
WaitVar := FALSE;
WindshellCommand := WindowDir+'\System32' + '\notepad.exe '+ Environ1.GetEnvironmentVariable('temp') + '\' + USERIDPART + '.txt';
WindShell.Run(WindshellCommand, WinType, WaitVar);

CLEAR(WindShell);


Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>