Let>CF_OVERWRITE=1
CopyFile>C:\Program Files\Putty\OrgFile\config.scr,C:\Program Files\Putty\config.scr
GetFileList>Z:\IQXReports\IDriveBackup\*.*,files
Separate>files,;,file_names
Let>k=0
Repeat>k
Let>k=k+1
WriteLn>c:\program files\putty\config.scr,result,file_names_%k%
Until>k,file_names_count
When the writeln inserts the file_names into the .scr file I would like the line to have a 'put' inserted before the filename as i want to use it in an ftp script, is this possible?.
Thx,
John
WriteLn
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Do this:
Code: Select all
Let>the_filename=file_names_%k%
WriteLn>c:\program files\putty\config.scr,result,put %the_filename%
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Pro Scripter
- Posts: 50
- Joined: Fri Mar 23, 2007 10:14 am