WriteLn

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
snapper1969
Pro Scripter
Posts: 50
Joined: Fri Mar 23, 2007 10:14 am

WriteLn

Post by snapper1969 » Thu Feb 03, 2011 8:08 am

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

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Feb 03, 2011 8:35 am

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?

snapper1969
Pro Scripter
Posts: 50
Joined: Fri Mar 23, 2007 10:14 am

Post by snapper1969 » Thu Feb 03, 2011 9:48 am

Thx marcus - it works a treat.

John

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