Author |
Message |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
FileZip Command |
|
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 |
|
 |
Len Fromzel ( SoftTree)
Joined: 13 Sep 2000 Posts: 5
|
|
Re: FileZip Command |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
Re: FileZip Command |
|
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 |
|
 |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
Re: FileZip Command |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
Re: FileZip Command |
|
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 |
|
 |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
Re: FileZip Command |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
Re: FileZip Command |
|
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 |
|
 |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
Re: FileZip Command |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
Re: FileZip Command |
|
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 |
|
 |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
Re: FileZip Command |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
Re: FileZip Command |
|
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 |
|
 |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
Re: FileZip Command |
|
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 |
|
 |
John Natale
Joined: 13 Sep 2000 Posts: 107
|
|
Re: FileZip Command |
|
Upgraded to version 2.3.6 and everything works properly now.
Thank You.
|
|
Mon Sep 25, 2000 10:53 am |
|
 |
|