SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
variables in file names

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
variables in file names
Author Message
Chris



Joined: 06 Jan 2004
Posts: 4

Post variables in file names Reply with quote

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.

Mon Feb 13, 2006 5:47 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: variables in file names Reply with quote

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.

Mon Feb 13, 2006 6:01 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.