dkwokgs Posted October 8, 2004 Share Posted October 8, 2004 Hi there is there a sample of how to use function like _DirRemoveContents( $sPath ) or _Max( $nNum1, $nNum2 ) ? Please advise. Thanks Daniel Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted October 8, 2004 Share Posted October 8, 2004 Hi there is there a sample of how to use function like _DirRemoveContents( $sPath ) or _Max( $nNum1, $nNum2 ) ?Please advise. ThanksDaniel<{POST_SNAPBACK}>They are basically like using any other function in AutoIt. You just have to #include the files that contain the functions before you use them. For an example of _DirRemoveContents():#include <File.au3> $RemDir = "C:\TestDir" If( _DirRemoveContents( $RemDir ) ) Then MsgBox( 0, "Success!", "This directory was removed successfully!" Else MsgBox( 16, "Failure!", "An error has occurred while removing this directory, please verify that it exists." ) EndIfI hope that clears things up a bit.*** Matt @ MPCS Link to comment Share on other sites More sharing options...
ezzetabi Posted October 8, 2004 Share Posted October 8, 2004 Or just: $path = 'c:\the folder\you\want to kill' DirRemove($path,1) DirCreate($path) Link to comment Share on other sites More sharing options...
emmanuel Posted October 8, 2004 Share Posted October 8, 2004 in general, I find that looking in the include file gives me what I need to know for each UDF, or the helpfile's section on that include file... "I'm not even supposed to be here today!" -Dante (Hicks) 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