Set the time within the sandbox

Ideas for enhancements to the software
Post Reply
newbie

Set the time within the sandbox

Post by newbie » Thu Sep 23, 2010 3:48 am

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?

Buster
Posts: 2576
Joined: Mon Aug 06, 2007 2:38 pm
Contact:

Re: Set the time within the sandbox

Post by Buster » Thu Sep 23, 2010 8:48 am

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.

MaSc

Post by MaSc » Sat Sep 25, 2010 3:59 am

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

lwc
Posts: 338
Joined: Tue Dec 19, 2006 6:37 am

Post by lwc » Sun Sep 26, 2010 3:15 pm

MaSc wrote:sadly no .bat
Why not? Please try this and report back:
program name: cmd.exe
parameters: /c file.bat your_parameters
Last edited by lwc on Sun Sep 26, 2010 7:46 pm, edited 1 time in total.

MaSc

Post by MaSc » Sun Sep 26, 2010 5:20 pm

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

lwc
Posts: 338
Joined: Tue Dec 19, 2006 6:37 am

Post by lwc » Sun Sep 26, 2010 7:47 pm

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?).

dynarx
Posts: 174
Joined: Mon Apr 02, 2007 9:31 pm
Location: New South Wales, Australia

Post by dynarx » Sun Sep 26, 2010 10:46 pm

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

Newbie

Post by Newbie » Wed Sep 29, 2010 10:44 am

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.

Fireball3
Posts: 13
Joined: Wed Sep 15, 2010 4:25 am

Post by Fireball3 » Sun Nov 18, 2012 4:48 am

Tanks a lot!
Had the need of the same feature in the sandbox.
Nirsoft tools works perfectly.

huskykhtam@gmail.com
Posts: 1
Joined: Thu Mar 14, 2013 10:31 pm

Post by huskykhtam@gmail.com » Thu Mar 14, 2013 10:39 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest