L
LS
Hi
I am trying to create an automatic weekly back up of a spreadsheet, to
a folder designated by the user. To save space I want to zip the file
using Winzip 9.
I have managed to get the following to work:
Shell (Winzip & " -min" & " -a " & MyZipFileName & " " & ThisWBName)
Where
MyZipFileName = the full path, filename and 'zip' extension to be
created and
ThisWBName = full path and filename of the file to compress.
However, the folder and filename are selected by the user. The above
works fine as long as there are no spaces in the path or file name,
otherwise Winzip generates an error "No files were found for this
action that match your criteria ...". A check of the error log shows
the spaces in the file/folder names were causing the problem. Because
of company policies, I cannot install the Command line add-in, so that
is not an option.
The only solution I can think of so far, is to tell the users not to
allow spaces in the file or folder names, but this is not ideal. Can
anyone suggest how to allow spaces in these names?
TIA
LS
I am trying to create an automatic weekly back up of a spreadsheet, to
a folder designated by the user. To save space I want to zip the file
using Winzip 9.
I have managed to get the following to work:
Shell (Winzip & " -min" & " -a " & MyZipFileName & " " & ThisWBName)
Where
MyZipFileName = the full path, filename and 'zip' extension to be
created and
ThisWBName = full path and filename of the file to compress.
However, the folder and filename are selected by the user. The above
works fine as long as there are no spaces in the path or file name,
otherwise Winzip generates an error "No files were found for this
action that match your criteria ...". A check of the error log shows
the spaces in the file/folder names were causing the problem. Because
of company policies, I cannot install the Command line add-in, so that
is not an option.
The only solution I can think of so far, is to tell the users not to
allow spaces in the file or folder names, but this is not ideal. Can
anyone suggest how to allow spaces in these names?
TIA
LS