Guest PJ2000 Posted July 14, 2004 Posted July 14, 2004 Hi all, Have a question. How can I put console command output to variable? For example echo or dir command. Thank You
ezzetabi Posted July 14, 2004 Posted July 14, 2004 (edited) Something like this? $Command="cmd /c dir c: /s";<-Your command RunWait($command & ">" & @scriptdir & "\output.txt","",@sw_hide) $OutPut = FileRead( @scriptdir & "\output.txt",FileGetSize(@scriptdir & "\output.txt")) FileDelete( @scriptdir & "\output.txt") ;$Output now contain the Console output of $Command Edited July 14, 2004 by ezzetabi
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