Trust No Program
Reply to topic
Passing argument to sandboxed application
Damien
Guest

Reply with quote
Hi,

I would like to pass a parameter to a sandboxed application.
The application is an executable file. I would like to pass a text file as an input parameter to my application.

With a regular command line application, the syntax is : D:\myApp < D:\input.txt

But with Sandboxie, I can't manage to pass this parameter. Probably because of the space.
I type Start.exe D:\myApp < D:\input.txt and it launches the application myApp but without passing the parameter.

Any idea how to resolve this?

Thanks,

Damien
tzuk


Joined: 22 Jun 2004
Posts: 15008
Reply with quote
This should work:

Code:
Start.exe cmd /c "d:\myapp < d:\input.txt"


It's important to quote only the part that comes after cmd /c.

_________________
tzuk
View user's profileSend private message
Brummelchen


Joined: 13 Oct 2008
Posts: 274
Reply with quote
i wonder this should work in general cause sandboxie dropped dos 16bit commands (command is a dos pipe)
http://www.lagmonster.org/docs/DOS7/pipes.html
View user's profileSend private message
Damien
Guest

Reply with quote
I tried this command :
Code:
 Start.exe cmd /c "d:\myapp < d:\input.txt"


But Sandboxie says that it doesn't find the file "d:\myapp < d:\input.txt" ...
tzuk


Joined: 22 Jun 2004
Posts: 15008
Reply with quote
Perhaps you typed it incorrectly, somehow. The command should tell Sandboxie Start.exe to run "cmd.exe" so you shouldn't be seeing any error messages about myapp which is only a parameter to "cmd.exe", as far as Sandboxie Start.exe is concerned.
View user's profileSend private message
Passing argument to sandboxed application
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

Use the RSS feed to watch this topic for replies
  
  
 Reply to topic  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,630,426 times since June 2004