Aelc 25 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? Share this post Link to post Share on other sites
Aelc 25 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? Share this post Link to post Share on other sites
JLogan3o13 1,640 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! Share this post Link to post Share on other sites