Slash Posted April 2, 2008 Share Posted April 2, 2008 Hi guys what is the code for deleting folder? i have test this: If $nMsg = $Button4 Then _RunDOS("rmdir \Cache\WDB") but this code not works Link to comment Share on other sites More sharing options...
Valuater Posted April 2, 2008 Share Posted April 2, 2008 Delete one or more files. FileDelete ( "path" ) Deletes a directory/folder. DirRemove ( "path" [, recurse] ) both are in help 8) Link to comment Share on other sites More sharing options...
Slash Posted April 2, 2008 Author Share Posted April 2, 2008 Hi, when is use this DirRemove ( "path" [, recurse] ) than comes a syntax error C:\Dokumente und Einstellungen\Slash\Desktop\launcher\Source\Launcher.au3(82,22) : ERROR: syntax error DirRemove ( "\Cache\WDB" [ ~~~~~~~~~~~~~~~~~~~^ C:\Dokumente und Einstellungen\Slash\Desktop\launcher\Source\Launcher.au3 - 1 error(s), 0 warning(s) Link to comment Share on other sites More sharing options...
Developers Jos Posted April 2, 2008 Developers Share Posted April 2, 2008 "[,recurse]'" means that its an optional parameter. Look at the examples in the helpfile. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Slash Posted April 2, 2008 Author Share Posted April 2, 2008 Now i use this DirRemove ( "Cache\WDB" [, 1] ) but this dos not works to^^ can you give me the complete code? the code must delete this folder Cache\WDB Link to comment Share on other sites More sharing options...
Developers Jos Posted April 2, 2008 Developers Share Posted April 2, 2008 Could you please do me a favor and read the whole page you find in the helpfile, also the example ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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