Page 1 of 1

Set the time within the sandbox

Posted: Thu Sep 23, 2010 3:48 am
by newbie
Hi,

I was wondering if it would be possible to add a feature to the sandbox so that programs within the sandbox runs with its own time separate from the main time of the system?

Re: Set the time within the sandbox

Posted: Thu Sep 23, 2010 8:48 am
by Buster
newbie wrote:Hi,

I was wondering if it would be possible to add a feature to the sandbox so that programs within the sandbox runs with its own time separate from the main time of the system?
This was requested and the answer was "no".

You can use the search function if you want to know why.

Posted: Sat Sep 25, 2010 3:59 am
by MaSc
A small Programm called RunAsDate from NirSoft could help you.
Start it inside the Sandbox, set the Date/Time and your Programm's destination, perhaps some startparameters and run it.
Only .exe possible, sadly no .bat or .com yet.
http://www.nirsoft.net/utils/run_as_date.html

Posted: Sun Sep 26, 2010 3:15 pm
by lwc
MaSc wrote:sadly no .bat
Why not? Please try this and report back:
program name: cmd.exe
parameters: /c file.bat your_parameters

Posted: Sun Sep 26, 2010 5:20 pm
by MaSc
Well, in the File-Open-Dialog I've just looked at the possible Extensions and saw nothing but .exe
This was the reason why I assumed that only .exe will work.
Using the Date and Time Command inside C:\WINDOWS\system32\cmd.exe works well.
But running with C:\WINDOWS\system32\command.com shows the original System Date/Time.
I've created two Batchfiles.
One with C:\WINDOWS\system32\cmd.exe and another with C:\WINDOWS\system32\command.com inside.
Both are showing successfull the forced Date/Time.
But running another instance of cmd.exe or command.com inside the first one shows the original System Date/Time.
Just like the test with the parameter /c C:\WINDOWS\system32\cmd.exe

Posted: Sun Sep 26, 2010 7:47 pm
by lwc
Why would you run cmd.exe inside itself? You asked to influence a BAT file.

Here's an actual screenshot
Image
(can anybody explain the undocumented "move time forward" option?).

Posted: Sun Sep 26, 2010 10:46 pm
by dynarx
lwc wrote:(can anybody explain the undocumented "move time forward" option?).
I believe that means move the system time to the figures selected, then allow system time to count *from there*, as opposed to 'stopping the clock' and freezing those figures in place.

Cheers,
D

Posted: Wed Sep 29, 2010 10:44 am
by Newbie
MaSc wrote:A small Programm called RunAsDate from NirSoft could help you.
Start it inside the Sandbox, set the Date/Time and your Programm's destination, perhaps some startparameters and run it.
Only .exe possible, sadly no .bat or .com yet.
http://www.nirsoft.net/utils/run_as_date.html

Thx a lot. It worked great.

Posted: Sun Nov 18, 2012 4:48 am
by Fireball3
Tanks a lot!
Had the need of the same feature in the sandbox.
Nirsoft tools works perfectly.

Posted: Thu Mar 14, 2013 10:39 pm
by huskykhtam@gmail.com
I'm currently running some program, zm.exe, which needs to access a certain driver file. So even if I run the main zm.exe program with "runasdate" (or similar software), the driver file zm.exe looks for still manages to read the system actual system time.

Sadly, I really need to find a way to change the system time to 2010 within sandboxie =( I could do this outside Sandboxie but if I do so, I couldn't run MS word simultaneously as I run zm.exe.