Edit Multiple files

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
geselaw
Newbie
Posts: 2
Joined: Sun Aug 28, 2005 1:46 pm

Edit Multiple files

Post by geselaw » Sun Aug 28, 2005 2:04 pm

I need help !

I want to edit multiple files one by one that are stored in a folder and store the new files in a different folder.I can not specify the file name because they would change every time.

I am a newbie so any help would be appreciated.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sun Aug 28, 2005 4:49 pm

If going to do them one by one, then using Input> may be the answer. A file Browse button is available so you can select from the names that appear.

You can select the file you want, then run the Editing program, save the file and loop back to the Input choices until you are done editing.

Code: Select all

Label>Edit
Input>FileToEdit,Select a File to Edit
Let>REP_WAIT=1
Run Program>Notepad %FileToEdit%

//...edit and save as needed, close Notepad

Ask>Edit another file?,DoAgain
If>%DoAgain%=YES,Edit
MessageModal>Done Editing
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Sun Aug 28, 2005 7:34 pm

Also be sure th check out the GetFileList command in MacroSched Help. This command puts file names in a variable, then use the Seperate command to parse them back into individual file names which you can manipulate any way you want.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts