Forum Discussion
Create your batch file to run your TC project on the VM. Run it, and make sure it works. Then create a scheduled task to call the batch file on your VM. Run the scheduled task, and make sure it works.
On the VM, call tscon. This will disconnect you from the VM, but your session will remain active. From another computer, connect to your VMs Task Schedular, and run the the schedule task, make sure it works.
If you connect to your VM, Task Manager will show two active sessions. Your current session and the pervious session.
Try and undersand how the above works, and you should then be able to configure your job.
If you run the following, you'll see the output it generates. And, tscon is expecting either session id or name as a parameter
for /f "skip=1 tokens=3" %s in ('query user %USERNAME%') do (echo %s)
or
query user %USERNAME%
What is tscon ? I am running into the same issue. I have the batch file to run the testExecute file and can run task scheduler over night to run the Execution plan. The only issue is that I have to run the VM overnight as an active window on the laptop. I would like to disconnect the program from needing an active connection to the VM. Is that possible?
Related Content
Recent Discussions
- 15 hours agoMW_Didata