Dim file_name, string .. inside loop ConcatEx "S:\\Website\\Clients\\Inventory\\autonexus_@T"yyyymmdd"_", count, ".zip", file_name FileZIP file_name, "S:\\Website Clients\\Inventory\\autonexus.txt" : Can I use a variable in a file name? I can't figure out the proper syntax. : I'm ftp a zip file that uses a date stamp with a count to indicate when the : file was uploaded and what number that file is for the day. : For example: Dim found, boolean : Dim count, number : Set (count, 1) : LoopWhile( found, ENDLOOP ) : FileExists( "S:\\Website : Clients\\Inventory\\autonexus_@T"yyyymmdd"_count.zip", : found ) : Set (count, count + 1) : ENDLOOP: Set (count, count - 1) : FileZIP "S:\\Website : Clients\\Inventory\\autonexus_@T"yyyymmdd"_count.zip", : "S:\\Website Clients\\Inventory\\autonexus.txt" : where the variable count changes depending on how many files have been : uploaded for that day. "count" in the file name would be a : number.
|