Aelc Posted June 25, 2019 Share Posted June 25, 2019 (edited) I think i'm actually tilted I'm on a DaemonTools mounter I can remove and add VirtualDrives but i want to "--get_letter" and write the answer to a txt. I used $command = '"C:\Program Files\Daemon Tools Lite\DTCommandLine.exe" --add --type "dt"' RunWait ( $command ) for adding and removing but if i want to get the txt file i have to use $command = '"C:\Program Files\Daemon Tools Lite\DTCommandLine.exe" --get_letter --type "dt" --number 1 >' & @ScriptDir & '\check_VD.txt' RunWait ( @ComSpec & " /k " & $command ) i guess if i insert this with Send () it works on a manually opened cmd but cmd tell me it's without quotes -> "C:\Program" couldn't find ( like i forgot the Quotes ) Or i can't execute files with @comspec ? Thank You in advance Edited June 25, 2019 by Aelc why do i get garbage when i buy garbage bags? Link to comment Share on other sites More sharing options...
Aelc Posted June 25, 2019 Author Share Posted June 25, 2019 Already got it $command = '""C:\Program Files\Daemon Tools Lite\DTCommandLine.exe" --get_letter --type "dt" --number 1 >' & @ScriptDir & '\check_VD.txt"' RunWait ( @ComSpec & " /k " & $command ) had to quote the whole command again sorry! SOLVED why do i get garbage when i buy garbage bags? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 25, 2019 Moderators Share Posted June 25, 2019 Moved to the appropriate forum. Moderation Team "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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