ant2ne Posted December 29, 2008 Posted December 29, 2008 runWait(@ComSpec & "/c " & "DEL /Q /S /F " & @Desktopdir & "\*.mp3", @SW_Maximize)
Pain Posted December 29, 2008 Posted December 29, 2008 Look at the parameters. RunWait(@ComSpec & " /c " & "Del " & '"' & @Desktopdir & '\*.mp3" /Q/S/F', "", @SW_MAXIMIZE )
LurchMan Posted December 29, 2008 Posted December 29, 2008 im guess you're trying to run cmd and send it commands? If so why not just open cmd then use send keys.... Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.
SpookMeister Posted December 29, 2008 Posted December 29, 2008 as a guess I bet it has something to do with the spaces in your @desktopdir as it is resolved... probably needs to be encapsulated in quotes for the extrapolated path to work. [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]
Andreik Posted December 29, 2008 Posted December 29, 2008 runWait(@ComSpec & "/c " & "DEL /Q /S /F " & @Desktopdir & "\*.mp3", @SW_Maximize)Try this: RunWait(@ComSpec & ' /C DEL /Q /S /F "' & @DesktopDir & '\*.mp3"', "", @SW_MAXIMIZE) For me work fine.
ant2ne Posted December 29, 2008 Author Posted December 29, 2008 Try this: RunWait(@ComSpec & ' /C DEL /Q /S /F "' & @DesktopDir & '\*.mp3"', "", @SW_MAXIMIZE) For me work fine. THAT WORKS thanks!!! I figured it was a syntax problem. Now... to see if it will work with redirected folders.
ant2ne Posted December 29, 2008 Author Posted December 29, 2008 THAT WORKS thanks!!! I figured it was a syntax problem. Now... to see if it will work with redirected folders.Mu ha ha !!The students are going to hate me!
Andreik Posted December 29, 2008 Posted December 29, 2008 (edited) Mu ha ha !!The students are going to hate me!Why? Edited December 29, 2008 by Andreik
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