stolie Posted June 25, 2005 Posted June 25, 2005 Hi all I would like to be able to automate the process of naming a saved file. The file would need to be a uniquely named file, eg say 500 times, something like "Page 1" "Page 2" etc. Is there a way i can get it to add "1" to the text after i enter the text "Page" each loop it does? Thanks in advance
w0uter Posted June 25, 2005 Posted June 25, 2005 a FOR loop ? My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
MSLx Fanboy Posted June 26, 2005 Posted June 26, 2005 Here's just a small example of writing to a file. In this example, moving $Content into the for loop and changing its value can make dynamic text in each file. $Content = "This is the first line" & @CRLF & "This is the second line" & @CRLF $stop = 500;will make 500 loops For $x = 1 To $stop $fName = "Page" & $x & ".txt" FileWrite($fName, $Content) Next Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
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