JSThePatriot Posted October 12, 2004 Share Posted October 12, 2004 BTW for any of those that want to refer me to FAQ 9 then please dont because I have been there and that code doesnt even work. Here is my code... $xpath = "C:\Program Files\Axon Data\AxCrypt\AxCrypt.exe" $path = "C:\Documents and Settings\The Vortex\My Documents\riseordie.txt" $password = "pass" Run('"' & $xpath & ' -e -k ' & "'" $password & "'" & ' -J ' & "'" & $path & "'" & '"','',@SW_HIDE) Basically that is going to run like this... (this is how it works in the windows run box) "C:\Program Files\Axon Data\AxCrypt\AxCrypt.exe" -e -k "pass" -J "C:\Documents and Settings\The Vortex\My Documents\riseordie.txt" JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
SlimShady Posted October 12, 2004 Share Posted October 12, 2004 You really made a mess with the quotes. Here's how it should be: $xpath = "C:\Program Files\Axon Data\AxCrypt\AxCrypt.exe" $path = "C:\Documents and Settings\The Vortex\My Documents\riseordie.txt" $password = "pass" Run('"' & $xpath & '" -e -k "' & $password & '" -J "' & $path & '"', '', @SW_HIDE) Link to comment Share on other sites More sharing options...
scriptkitty Posted October 12, 2004 Share Posted October 12, 2004 I assume you tried this as wellrun('"C:\Program Files\Axon Data\AxCrypt\AxCrypt.exe" -e -k "pass" -J "C:\Documents and Settings\The Vortex\My Documents\riseordie.txt"' , '', @SW_HIDE)Also if you have quote problems you can use other substitutions.$xpath = "C:\Program Files\Axon Data\AxCrypt\AxCrypt.exe" $path = "C:\Documents and Settings\The Vortex\My Documents\riseordie.txt" $password = "pass" $run1="#" & $xpath & "# -e -k #" & $password & "# -J #" & $path & "#" $run1=StringReplace($run1,'#','"'); replace # with " run($run1 ,'',@SW_HIDE)It executes in the same time(maybe a millisec slower) but if you can read it easy, it might be worth it.Normally I remove the quotes from the first EXE, because I never seem to have a problem with it, try out this if the above fails ya:run('C:\Program Files\Axon Data\AxCrypt\AxCrypt.exe -e -k "pass" -J "C:\Documents and Settings\The Vortex\My Documents\riseordie.txt"' , '', @SW_HIDE) AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
JSThePatriot Posted October 13, 2004 Author Share Posted October 13, 2004 Appreciate the fast replies I will get back with on whether or not it works... JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now