SkysLastChance Posted October 20, 2022 Share Posted October 20, 2022 (edited) Hey fam, Is there a diffrent/better way I should be using to exlude temp files other then. $aData = _WinAPI_ReadDirectoryChanges($hDirectory, $FILE_NOTIFY_CHANGE_FILE_NAME, $pBuffer, 65536, False) $FileTempCheck = StringLeft($aData[1][0],2) ;Looks for the creation of a new file as long as it does not begin with ~$ will run. If $FileNew = 1 And $FileTempCheck <> "~$" Then ;My Script EndIf Thanks in advance. Edited October 20, 2022 by SkysLastChance You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott 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