Sign in to follow this  
Followers 0
Slash

Delete folder?

6 posts in this topic

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

Share this post


Link to post
Share on other sites



Delete one or more files.

FileDelete ( "path" )

Deletes a directory/folder.

DirRemove ( "path" [, recurse] )

both are in help

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0