Conditional execution of command Log Out | Topics | Search
Moderators | Edit Profile

X-Ways Support Forum » Advanced Features » Conditional execution of command « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert Young
Username: abilitysys

Registered: N/A
Posted on Tuesday, Aug 19, 2008 - 18:25:   

Is there a way to conditionally execute a "deletefile" command? Something like:

if exist "File X" DeleteFile "File X"

or alternatively, force continuation of a script so that the lack of a file doesn't stop it. Something like:

On Error Continue
DeleteFile "File X"
DeleteFile "File Y"
DeleteFile "File Z"

So that even if file X doesn't exist, File Y and Z are deleted....

Thanks.

- Robert
Top of pagePrevious messageNext messageBottom of page Link to this message

Björn Ganster
Username: admin4

Registered: 3-2004
Posted on Wednesday, Aug 20, 2008 - 11:00:   

If you are referring to the WinHex scripting language,the capabilities of that language are limited. Please consider using the API functions instead. If that is not an option, please let us know why.
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert Young
Username: abilitysys

Registered: N/A
Posted on Wednesday, Aug 20, 2008 - 16:40:   

Yes, I'm referring o WinHex.

No, I'd rather not write a program that uses the API since it introduces a new layer.

Just consider my suggestion for a future release, then.

- Robert

Add Your Message Here
Post:
Username: Posting Information:
Only registered users may post messages here, i.e. you need to have an account.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:
Forum operated by X-Ways Software Technology AG.