Delete files using Run Command
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I have below list of files saved in C: drive
C:\MyFiles\File1_AU.xlsx
C:\MyFiles\File1_HK.xlsx
C:\MyFiles\File1_SN.xlsx
C:\MyFiles\File1_IN.xlsx
C:\MyFiles\File1_UK.xlsx
C:\MyFiles\File1_US.xlsx
C:\MyFiles\File1_SP.xlsx
C:\MyFiles\File1_FR.xlsx
C:\MyFiles\File1_BL.xlsx
I want to delete specific files based on selection of countries from list box. I have developed the list box.
Only i stuck where i want to delete specific files from list of the files using Run command.
If i select HK,IN,US,FR then only those files should delete where file name contains this country code.
Appreciate your help.
Thank you,
Solved! Go to Solution.
- Labels:
- Alias Manager
- AMP Engine
- API
- Apps
- Batch Macro
- Behavior Analysis
- Best Practices
- Bug
- Common Use Cases
- Date Time
- Developer
- Developer Tools
- Download
- Engine
- Error Message
- Events
- Expression
- Gallery
- Help
- In Database
- Input
- Installation
- Interface Tools
- Iterative Macro
- Join
- Macros
- Output
- Run Command
- Server
- Settings
- Tips and Tricks
- Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @alt_tush
Here's an example, just update the text input with a directory tool (might need to tweak some formulas referencing the file path field). This should dynamically filter and create the command to delete a file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@BS_THE_ANALYST Yes good call, it'd be good to get those dynamically for this use case - I was just mocking something up quick 😁.
