DeleteFolder and DeleteFile Results
Moderators: JRL, Dorian (MJT support)
DeleteFolder and DeleteFile Results
I have a macro where I am deleting certain files and folders. I have run into a problem when the file/folder cannot be deleted due to being protected or in use. How can I determine if the operation was successful, or if not, how do I determine why?.
Joe Mueller
[email protected]
[email protected]
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Sounds like a good suggestion.
I was hoping that there was some way to capture the error message or error code so I could report it.
Thanks.
I was hoping that there was some way to capture the error message or error code so I could report it.
Thanks.
Joe Mueller
[email protected]
[email protected]
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
If a code existed you would be checking for a code and making an IF condition action.
These commands are the same thing. The commands result in IF condition actions also. (But no need to remember a code number). If you need a code, maybe for other actions, just assign your own code as part of the IF actions.
Sample code draft:
These commands are the same thing. The commands result in IF condition actions also. (But no need to remember a code number). If you need a code, maybe for other actions, just assign your own code as part of the IF actions.
Sample code draft:
Code: Select all
Delete File
Wait
If File Exists, True, False
Label>True
Let>DeletedCode=0
Do something like two more delete attempts.
Label>False
Let>DeletedCode=1
Do something else
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!