SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FileZip

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FileZip
Author Message
Rick Ireland



Joined: 30 Oct 2000
Posts: 44

Post FileZip Reply with quote

Hello (again, meekly)

I cannot get the FileZip command to work - even the example from the help won't run. (I changed the source to C:\Temp\*.txt, and there are 3 text files there.) I get: "Invalid File Name. File C:\Temp\*.txt not found"

// For simplicity, this script automatically generates zip file name
// as a function of current date
Dim zip_file, string, "c:\\@T"mm-dd-yy".zip"

// Zip them
FileZIP zip_file, "c:\\Temp\\*.txt"

//Copyright © 1998-2000 SoftTree Technologies, Inc.

Mon Nov 27, 2000 2:53 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: FileZip Reply with quote

try this:

Dim file_list, string
Dir "c:\\Temp\\*.txt", file_list
FileZIP "c:\\@T"mm-dd-yy".zip", file_list

PS. The help topic for FileZip does not say that we can use wildcards in this statement, I guess the example is incorect.

: Hello (again, meekly)

: I cannot get the FileZip command to work - even the example from the help
: won't run. (I changed the source to C:\Temp\*.txt, and there are 3 text
: files there.) I get: "Invalid File Name. File C:\Temp\*.txt not
: found"

: // For simplicity, this script automatically generates zip file name
: // as a function of current date
: Dim zip_file, string, "c:\\@T"mm-dd-yy".zip"

: // Zip them
: FileZIP zip_file, "c:\\Temp\\*.txt"

: //Copyright © 1998-2000 SoftTree Technologies, Inc.

Mon Nov 27, 2000 4:21 pm View user's profile Send private message
Rick Ireland



Joined: 30 Oct 2000
Posts: 44

Post Re: FileZip Reply with quote

Yeah, I saw that bit about the wild cards, too, but fiddling with that got me more lost. I cut/paste and added a CD statement, but I still get errors:
//*********************************************************
Dim file_list, string
CD "c:\\Temp"
Dir "*.txt", file_list
FileZIP "c:\\@T"mm-dd-yy".zip", file_list
//*********************************************************
Generates: An error occured while executing 24x7 script: Line 4: Invalid file name. File "" not found.
//*********************************************************
C:\TEMP>dir *.txt
Volume in drive C is WINNT
Volume Serial Number is 0486-A890

Directory of C:\TEMP

07/31/00 11:05a 28,160 toc.txt
10/03/00 09:58a 43,752 VBD.txt
11/03/00 02:29p 1,323 XQ_XSET_Logfile.txt

3 File(s) 73,235 bytes

25,729,536 bytes free

C:\TEMP>
//*********************************************************

...any ideas...? My setup maybe...?

: try this: Dim file_list, string
: Dir "c:\\Temp\\*.txt", file_list
: FileZIP "c:\\@T"mm-dd-yy".zip", file_list

: PS. The help topic for FileZip does not say that we can use wildcards in this
: statement, I guess the example is incorect.

Mon Nov 27, 2000 5:37 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: FileZip Reply with quote

Which 24x7 version are you using? I've seen a message like this in v2.3.something and it was fixed in latest versions.

What about FileZIP "c:\\@T"mm-dd-yy".zip", "c:\\Temp\\toc.txt"
Does is work for you?

: Yeah, I saw that bit about the wild cards, too, but fiddling with that got me
: more lost. I cut/paste and added a CD statement, but I still get errors:
: //*********************************************************
: Dim file_list, string
: CD "c:\\Temp"
: Dir "*.txt", file_list
: FileZIP "c:\\@T"mm-dd-yy".zip", file_list
: //*********************************************************
: Generates: An error occured while executing 24x7 script: Line 4: Invalid file
: name. File "" not found.
: //*********************************************************
: C:\TEMP>dir *.txt
: Volume in drive C is WINNT
: Volume Serial Number is 0486-A890

: Directory of C:\TEMP

: 07/31/00 11:05a 28,160 toc.txt
: 10/03/00 09:58a 43,752 VBD.txt
: 11/03/00 02:29p 1,323 XQ_XSET_Logfile.txt

: 3 File(s) 73,235 bytes

: 25,729,536 bytes free

: C:\TEMP>
: //*********************************************************

: ...any ideas...? My setup maybe...?

Mon Nov 27, 2000 6:23 pm View user's profile Send private message
Rick Ireland



Joined: 30 Oct 2000
Posts: 44

Post Re: FileZip Reply with quote

Crud
yep, still on 2.3; upgraded to 2.4.1 and FileZip works fine.
sorry 'bout that

: Which 24x7 version are you using? I've seen a message like this in
: v2.3.something and it was fixed in latest versions.

: What about FileZIP "c:\\@T"mm-dd-yy".zip",
: "c:\\Temp\\toc.txt"
: Does is work for you?

Tue Nov 28, 2000 5:34 am 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.