leuce Posted February 23, 2020 Posted February 23, 2020 (edited) Hello everyone If I create an EXE version of a script and then drag and drop files onto it, those files' paths are captured as $CmdLine parameters. And if I drag and drop a folder onto the EXE file, it captures the folder path (but not any of the paths of the files inside that folder). This makes sense to me, of course, but I would like to be able to pass the paths of all files inside the folder(s) to the EXE script as parameters. Is there a way to accomplish that? For example, I have a script that renames files based on a pattern. If I have 10 subfolders with files in them, I have to process each of folders individually by dragging and dropping the files themselves (not the folders). Thanks Samuel Edited February 23, 2020 by leuce
Nine Posted February 24, 2020 Posted February 24, 2020 Once you got the folder(s) thru drag and drop, use _FileListToArrayRec to get all files within a specific folder and rename them all. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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