I’m trying to run a EasyMorph project that calls some sub processes in it. One of the process is a vbscript and it runs fine when I directly execute the EM project. However, the project never finishes when I try to run it on the server.
I noticed the wscript task in hanging in the task manager every time when I try to run it on the server. Can you please advise what is the correct way of running these kinds of projects?
I didn’t specify the application as wscript or cscript in the code at first place. I removed the echo part of the script and tried to run a unit test of this script by setting up a separate EM project. it again runs fine when running directly in the EM project, but failed in the Server instance.
The issue seems to be that the server instance doesn’t have the proper access to the folder I’m trying to access. Please see logs in details.
The solution turns out to be rather unusual:
Assuming you’re using cscript.exe, you need to create an empty folder named Desktop in C:\Windows\System32\config\systemprofile. That’s it. That makes it work.
The solution was supposed to be for 32-bit Windows, but it actually worked in 64-bit Windows.
Found in this article.