how to run cmd out of sandbox

Discuss and share scripts and script files...
Post Reply
Huidong
Posts: 213
Joined: 18 May 2011 21:55

how to run cmd out of sandbox

Post by Huidong »

In the previous topic, the main issue is no longer relevant, so I restate it here:

When the current tab is a folder within sandbox, say D:\Sandbox\...\...\Folder1, then I run the following command (from the menu Scripting - Run Script)

Code: Select all

run "cmd /k cd /d C:\"
Yes the cmd will start with C:\>, however, it is trapped in that sandbox, so it cannot fuction properly, e.g. it can't kill processes.
So I wonder if there's a way to run cmd outside sandbox while the current tab is in sandbox?

I found a way to escape myself, but rather ugly:

Code: Select all

goto "%computer%", 1;
run "cmd /c cd /d C:\ & tskill defraggler";
#520; //Go back
I wonder if there's a more beautiful way, i.e. using some options of cmd or cd.
Thanks.

Post Reply