SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FileZip Command

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



Joined: 13 Sep 2000
Posts: 107

Post FileZip Command Reply with quote

Version: 2.3.5 of 24x7 Scheduler

I am having a problem getting the FileZip command to work.

If I setup the command like this: FileZip( "htslog2.zip", "htslog2.log" )
I get an error message Line 1: invalid file name. File "" not found.

If I setup the command like this: FileZip( "htslog2.log", "htslog2.zip" )
I get an error message Line 1: invalid file name. File "htslog2.zip" not found and it erases the htslog2.log file.

Also, there is confusion between the help system and the coding assistant.
The help file has the format as FileZip , and the coding assistant has the format as FileZip ,

Thank You,

John

Thu Sep 14, 2000 10:06 am View user's profile Send private message
Len Fromzel ( SoftTree)



Joined: 13 Sep 2000
Posts: 5

Post Re: FileZip Command Reply with quote

John,

Thanks again.
We will test this problem. Sorry for inconvenience with help and coding assistant.
We'll respond as soon as we can.

: Version: 2.3.5 of 24x7 Scheduler

: I am having a problem getting the FileZip command to work.

: If I setup the command like this: FileZip( "htslog2.zip",
: "htslog2.log" )
: I get an error message Line 1: invalid file name. File "" not
: found.

: If I setup the command like this: FileZip( "htslog2.log",
: "htslog2.zip" )
: I get an error message Line 1: invalid file name. File
: "htslog2.zip" not found and it erases the htslog2.log file.

: Also, there is confusion between the help system and the coding assistant.
: The help file has the format as FileZip , and the coding assistant has the
: format as FileZip ,

: Thank You,

: John

Fri Sep 15, 2000 12:41 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: FileZip Command Reply with quote

Always specify full file names to avoid getting this message again. The current directory could be anything at the job execution time. The correct syntax
if "FileZip [new zip file name], [list of files to zip]".

Please do not use signs of logical operations such as "<" in this forum messages as they are considered as part of HMTL syntax and removed from messages when posted.

: Version: 2.3.5 of 24x7 Scheduler

: I am having a problem getting the FileZip command to work.

: If I setup the command like this: FileZip( "htslog2.zip",
: "htslog2.log" )
: I get an error message Line 1: invalid file name. File "" not
: found.

: If I setup the command like this: FileZip( "htslog2.log",
: "htslog2.zip" )
: I get an error message Line 1: invalid file name. File
: "htslog2.zip" not found and it erases the htslog2.log file.

: Also, there is confusion between the help system and the coding assistant.
: The help file has the format as FileZip , and the coding assistant has the
: format as FileZip ,

: Thank You,

: John

Fri Sep 15, 2000 5:40 am View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: FileZip Command Reply with quote

I've tried that as well using FileZip "D:\\TRANSIT\\MYZIP.ZIP", "D:\\TRANSIT\\MYDOC.TXT" and I still get the same error.

Sorry about the Logical operators in my previous text.

Also I've upgraded to 2.3.5 of the software.

John

Fri Sep 15, 2000 9:26 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: FileZip Command Reply with quote

1. Check if you have special ASCII symbols enabled in the system options, if not replace double back-slashes with single back-slashes
2. Make sure that d:\transit\mydoc.txt does exist and d:\transit is a write enabled directory.

: I've tried that as well using FileZip "D:\\TRANSIT\\MYZIP.ZIP",
: "D:\\TRANSIT\\MYDOC.TXT" and I still get the same error.

: Sorry about the Logical operators in my previous text.

: Also I've upgraded to 2.3.5 of the software.

: John

Sat Sep 16, 2000 6:16 am View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: FileZip Command Reply with quote

1. Search for special charaters is enabled with the \ being the escape charater.

2. The file does exist and I am logged in as Administrator so I have all rights.

3. If the zip file exists it is deleted but the error still occures.

: 1. Check if you have special ASCII symbols enabled in the system options, if
: not replace double back-slashes with single back-slashes
: 2. Make sure that d:\transit\mydoc.txt does exist and d:\transit is a write
: enabled directory.

Mon Sep 18, 2000 10:12 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: FileZip Command Reply with quote

Hm... does "FileCopy d:\\transit\\mydoc.doc d:\\transit\\mydoc2.doc" work for you?

: 1. Search for special charaters is enabled with the \ being the escape
: charater.

: 2. The file does exist and I am logged in as Administrator so I have all
: rights.

: 3. If the zip file exists it is deleted but the error still occures.

Tue Sep 19, 2000 5:00 am View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: FileZip Command Reply with quote

Yes, FileCopy does work.

: Hm... does "FileCopy d:\\transit\\mydoc.doc
: d:\\transit\\mydoc2.doc" work for you?

Tue Sep 19, 2000 4:11 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: FileZip Command Reply with quote

Two more questions...

Is D drive a local drive? if yes what is your operations system and file system (FAT, FAT32, NTFS, other)?

After you do a FileCopy for the file, can you FileZip the copy of the original file created by the FileCopy?

: Yes, FileCopy does work.

Wed Sep 20, 2000 11:14 pm View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: FileZip Command Reply with quote

The D drive is a Local drive with an NTFS file system.

No, I can not FileZip the copy.

Thu Sep 21, 2000 11:44 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: FileZip Command Reply with quote

Does it work on the C drive?

Try for example the following script

FileSave "c:\\test.txt", "dummy text"
FileZip "c:\\test.zip", "c:\\test.txt"
FileDelete "c:\\test.txt"
MessageBox "Done. Now verify c:\\test.zip"

This should produce c:\test.zip

: The D drive is a Local drive with an NTFS file system.

: No, I can not FileZip the copy.

Thu Sep 21, 2000 12:19 pm View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: FileZip Command Reply with quote

Nope, FileZip does not work anywhere.
But strangly FileUnZip does work just fine.

You would think that if one didn't work neither
would the other.

John

: Does it work on the C drive?

: Try for example the following script

: FileSave "c:\\test.txt", "dummy text"
: FileZip "c:\\test.zip", "c:\\test.txt"
: FileDelete "c:\\test.txt"
: MessageBox "Done. Now verify c:\\test.zip"

: This should produce c:\test.zip

Fri Sep 22, 2000 9:18 am View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: FileZip Command Reply with quote

Upgraded to version 2.3.6 and everything works properly now.

Thank You.

Mon Sep 25, 2000 10:53 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.