What is the proper syntax to run this command line in ASP?
wzzip.exe File.zip File.txt
thanks 9 19624
Dim oShell, sCommand
sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\File.txt"
Set oShell = Server.CreateObject("WScript.Shell")
oShell.Run sCommand, , True
Set oShell = Nothing
Try that.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... What is the proper syntax to run this command line in ASP?
wzzip.exe File.zip File.txt
thanks
I'm not sure if this is a syntax issue or a WinZip issue. The code runs
without error and these three files are created. The temp files are
populated, but the ZIP file is empty. Any ideas?
_Za04560 = 3,321 KB
Stock.zip = 0 bytes
WZ60.tmp = 3,321 KB
If I use the START > Run - this command works without a probolem:
wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip
C:\Inetpub\wwwroot\shwholesale\db\*.dbf
So that should tell me the command and paths are OK.
<%
Dim oShell, sCommand
'sCommand = "wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip
C:\Inetpub\wwwroot\shwholesale\db\*.dbf"
sCommand = "wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip
C:\Inetpub\wwwroot\shwholesale\db\*.dbf"
Set oShell = Server.CreateObject("WScript.Shell")
oShell.Run sCommand, , True
Set oShell = Nothing
%>
thanks!
-----------------------------------------------
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:Ol**************@TK2MSFTNGP12.phx.gbl... Dim oShell, sCommand sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\File.txt" Set oShell = Server.CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing
Try that.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... What is the proper syntax to run this command line in ASP?
wzzip.exe File.zip File.txt
thanks
Are those .dbf files in use by your page when you execute that script? Any
open database connections or anything? Throw some test text files in that
directory and try zipping those up to see what happens.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl... I'm not sure if this is a syntax issue or a WinZip issue. The code runs without error and these three files are created. The temp files are populated, but the ZIP file is empty. Any ideas?
_Za04560 = 3,321 KB Stock.zip = 0 bytes WZ60.tmp = 3,321 KB
If I use the START > Run - this command works without a probolem: wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf So that should tell me the command and paths are OK.
<% Dim oShell, sCommand 'sCommand = "wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf" sCommand = "wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf" Set oShell = Server.CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing %> thanks! ----------------------------------------------- "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:Ol**************@TK2MSFTNGP12.phx.gbl... Dim oShell, sCommand sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\File.txt" Set oShell = Server.CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing
Try that.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... What is the proper syntax to run this command line in ASP?
wzzip.exe File.zip File.txt
thanks
Yes they are DBF files, but there is no connection to them. They are just
simple files. I can zip using the RUN dialog box with the below command, but
when I stick the command in the code, all I get is the temp files and an
empty zip file.
thanks!
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eP**************@TK2MSFTNGP11.phx.gbl... Are those .dbf files in use by your page when you execute that script? Any open database connections or anything? Throw some test text files in that directory and try zipping those up to see what happens.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... I'm not sure if this is a syntax issue or a WinZip issue. The code runs without error and these three files are created. The temp files are populated, but the ZIP file is empty. Any ideas?
_Za04560 = 3,321 KB Stock.zip = 0 bytes WZ60.tmp = 3,321 KB
If I use the START > Run - this command works without a probolem: wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf So that should tell me the command and paths are OK.
<% Dim oShell, sCommand 'sCommand = "wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf" sCommand = "wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf" Set oShell = Server.CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing %> thanks! ----------------------------------------------- "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:Ol**************@TK2MSFTNGP12.phx.gbl... Dim oShell, sCommand sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\File.txt" Set oShell = Server.CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing
Try that.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... What is the proper syntax to run this command line in ASP?
wzzip.exe File.zip File.txt
thanks
You explained that in your previous post. Did you try testing it with text
files?
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Yes they are DBF files, but there is no connection to them. They are just simple files. I can zip using the RUN dialog box with the below command, but when I stick the command in the code, all I get is the temp files and an empty zip file. thanks!
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:eP**************@TK2MSFTNGP11.phx.gbl... Are those .dbf files in use by your page when you execute that script? Any open database connections or anything? Throw some test text files in that directory and try zipping those up to see what happens.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... I'm not sure if this is a syntax issue or a WinZip issue. The code runs without error and these three files are created. The temp files are populated, but the ZIP file is empty. Any ideas?
_Za04560 = 3,321 KB Stock.zip = 0 bytes WZ60.tmp = 3,321 KB
If I use the START > Run - this command works without a probolem: wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf So that should tell me the command and paths are OK.
<% Dim oShell, sCommand 'sCommand = "wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf" sCommand = "wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf" Set oShell = Server.CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing %> thanks! ----------------------------------------------- "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:Ol**************@TK2MSFTNGP12.phx.gbl... Dim oShell, sCommand sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\File.txt" Set oShell = Server.CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing
Try that.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... > What is the proper syntax to run this command line in ASP? > > wzzip.exe File.zip File.txt > > thanks >
I just tried it with 5 *.txt files. Same results. Two temp files that are
populated and a ZIP file that's empty. Then I ran the command line in the
RUN dialog and it grabbed all 5 text files and zipped them without a
problem. So, same results.
oShell.Run sCommand, , True
What does the empty space between the commas mean?
What does True mean?
thanks!
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:et**************@TK2MSFTNGP12.phx.gbl... You explained that in your previous post. Did you try testing it with text files?
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Yes they are DBF files, but there is no connection to them. They are just simple files. I can zip using the RUN dialog box with the below command, but when I stick the command in the code, all I get is the temp files and an empty zip file. thanks!
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:eP**************@TK2MSFTNGP11.phx.gbl... Are those .dbf files in use by your page when you execute that script? Any open database connections or anything? Throw some test text files in that directory and try zipping those up to see what happens.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... I'm not sure if this is a syntax issue or a WinZip issue. The code runs without error and these three files are created. The temp files are populated, but the ZIP file is empty. Any ideas?
_Za04560 = 3,321 KB Stock.zip = 0 bytes WZ60.tmp = 3,321 KB
If I use the START > Run - this command works without a probolem: wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf So that should tell me the command and paths are OK.
<% Dim oShell, sCommand 'sCommand = "wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf" sCommand = "wzzip.exe C:\Inetpub\wwwroot\shwholesale\db\shStock.zip C:\Inetpub\wwwroot\shwholesale\db\*.dbf" Set oShell = Server.CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing %> thanks! ----------------------------------------------- "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:Ol**************@TK2MSFTNGP12.phx.gbl... > Dim oShell, sCommand > sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\File.txt" > Set oShell = Server.CreateObject("WScript.Shell") > oShell.Run sCommand, , True > Set oShell = Nothing > > Try that. > > Ray at work > > "shank" <sh***@tampabay.rr.com> wrote in message > news:%2****************@TK2MSFTNGP11.phx.gbl... >> What is the proper syntax to run this command line in ASP? >> >> wzzip.exe File.zip File.txt >> >> thanks >> > >
Hi shank,
The empty space should actually be a 0, although a space is okay to use.
But, to be clear, best put a 0 in there. The true means that the script
should wait for your executed command to finish before moving along.
Download the WSH documentation here: http://www.microsoft.com/downloads/d...6-1C4099D7BBB9
When I run the script in a .vbs file, it works fine. It also works in an
ASP file where my IUSR account has full permissions on the directory in to
which I'm writing the .zip file.
My VBS file that I run:
Dim oShell, sCommand
sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\*.txt"
Set oShell = CreateObject("WScript.Shell")
oShell.Run sCommand, , True
Set oShell = Nothing
My ASP file:
<%
Dim oShell, sCommand
sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\*.txt"
Set oShell = CreateObject("WScript.Shell")
oShell.Run sCommand, , True
Set oShell = Nothing
%>
I'm using Winzip 10. Is your copy of Winzip registered?
Ray at work
As for your script, what kind of permissions does IUSR_[servername] have on
the directory you're trying to zip your files in?
"shank" <sh***@tampabay.rr.com> wrote in message
news:u$**************@TK2MSFTNGP14.phx.gbl... I just tried it with 5 *.txt files. Same results. Two temp files that are populated and a ZIP file that's empty. Then I ran the command line in the RUN dialog and it grabbed all 5 text files and zipped them without a problem. So, same results.
oShell.Run sCommand, , True What does the empty space between the commas mean? What does True mean?
thanks!
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:et**************@TK2MSFTNGP12.phx.gbl... You explained that in your previous post. Did you try testing it with text files?
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Yes they are DBF files, but there is no connection to them. They are just simple files. I can zip using the RUN dialog box with the below command, but when I stick the command in the code, all I get is the temp files and an empty zip file. thanks!
Yes I have the registered WinZip Pro version $59.99.
My permissions look right and I have to assume they are correct.
I can write the DBF files from one ASP page.
Then the ASP zip page creates the temp zip files.
That should cover read & writes.
I need to trade a few emails with WinZip I think.
thanks!
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eK**************@TK2MSFTNGP12.phx.gbl... Hi shank,
The empty space should actually be a 0, although a space is okay to use. But, to be clear, best put a 0 in there. The true means that the script should wait for your executed command to finish before moving along. Download the WSH documentation here: http://www.microsoft.com/downloads/d...6-1C4099D7BBB9
When I run the script in a .vbs file, it works fine. It also works in an ASP file where my IUSR account has full permissions on the directory in to which I'm writing the .zip file.
My VBS file that I run: Dim oShell, sCommand sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\*.txt" Set oShell = CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing
My ASP file: <% Dim oShell, sCommand sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\*.txt" Set oShell = CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing %>
I'm using Winzip 10. Is your copy of Winzip registered?
Ray at work
As for your script, what kind of permissions does IUSR_[servername] have on the directory you're trying to zip your files in? "shank" <sh***@tampabay.rr.com> wrote in message news:u$**************@TK2MSFTNGP14.phx.gbl...I just tried it with 5 *.txt files. Same results. Two temp files that are populated and a ZIP file that's empty. Then I ran the command line in the RUN dialog and it grabbed all 5 text files and zipped them without a problem. So, same results.
oShell.Run sCommand, , True What does the empty space between the commas mean? What does True mean?
thanks!
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:et**************@TK2MSFTNGP12.phx.gbl... You explained that in your previous post. Did you try testing it with text files?
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Yes they are DBF files, but there is no connection to them. They are just simple files. I can zip using the RUN dialog box with the below command, but when I stick the command in the code, all I get is the temp files and an empty zip file. thanks!
I have found the problem. The WinZip is user based registration, not server
based. They do not have a server version. It worked with the RUN box because
I was logged in.
thanks for your help!
- - - - - - - - - - -
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eK**************@TK2MSFTNGP12.phx.gbl... Hi shank,
The empty space should actually be a 0, although a space is okay to use. But, to be clear, best put a 0 in there. The true means that the script should wait for your executed command to finish before moving along. Download the WSH documentation here: http://www.microsoft.com/downloads/d...6-1C4099D7BBB9
When I run the script in a .vbs file, it works fine. It also works in an ASP file where my IUSR account has full permissions on the directory in to which I'm writing the .zip file.
My VBS file that I run: Dim oShell, sCommand sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\*.txt" Set oShell = CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing
My ASP file: <% Dim oShell, sCommand sCommand = "wzzip.exe C:\Output\File.zip C:\SourceFiles\*.txt" Set oShell = CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing %>
I'm using Winzip 10. Is your copy of Winzip registered?
Ray at work
As for your script, what kind of permissions does IUSR_[servername] have on the directory you're trying to zip your files in? "shank" <sh***@tampabay.rr.com> wrote in message news:u$**************@TK2MSFTNGP14.phx.gbl...I just tried it with 5 *.txt files. Same results. Two temp files that are populated and a ZIP file that's empty. Then I ran the command line in the RUN dialog and it grabbed all 5 text files and zipped them without a problem. So, same results.
oShell.Run sCommand, , True What does the empty space between the commas mean? What does True mean?
thanks!
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:et**************@TK2MSFTNGP12.phx.gbl... You explained that in your previous post. Did you try testing it with text files?
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... Yes they are DBF files, but there is no connection to them. They are just simple files. I can zip using the RUN dialog box with the below command, but when I stick the command in the code, all I get is the temp files and an empty zip file. thanks!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Joe |
last post by:
I'm using Python 2.4 on Windows XP SP2.
I'm trying to receive a command line argument that is a newline (\n)
Here is the command line to use
sample.py "\n"
Here is a sample.py script
|
by: Steve M |
last post by:
I'm trying to invoke a Java command-line program from my Python program
on Windows XP. I cannot get the paths in one of the arguments to work
right.
The instructions for the program describe the...
|
by: lkrubner |
last post by:
I'd like to write a PHP script to be used from the command line on a
Unix machine. I'd like for the script to put together a string, turn it
into a web page, print it, then return control the...
|
by: randyelliott |
last post by:
Good Day,
I have a MS Access (Access 2000 now upgraded to 2003) database that
tracks customer information. One function of this database is to
create an encrypted license file for our software,...
|
by: Roman Mashak |
last post by:
Hello, All!
I'm implementing simple CLI (flat model, no tree-style menu etc.). Command
line looks like this: <command> <param1> <param2> ... <paramN> (where
N=1..4)
And idea is pretty simple:
...
|
by: Double Echo |
last post by:
Hi all,
I'm using PHP 4.4.2, and use PHP on both the command-line and the web.
I am running PHP on SuSE 10 Linux , in a VMware 5.5 workstation, using
Apache 2.0.55 , on my Dell laptop. ...
|
by: Bit byte |
last post by:
I have a project that I normally build (without problems) from the
DevStudio IDE. However, I have embarked on automating all my builds
(this test project being one of several).
The project...
|
by: Jim |
last post by:
Hello,
I need a program that will traverse a directory tree to ensure that
there
are unix-style line endings on every file in that tree that is a text
file.
To tell text files from others I...
|
by: Ojas |
last post by:
Hi!,
I just out of curiosity want to know how top detect the client side
application under which the script is getting run. I mean to ask the
how to know whether the script is running under...
|
by: Jwe |
last post by:
Hi,
I've written a program which has both a command line interface
and Windows form interface, however it isn't quite working
correctly.
When run from command line with no arguments it should...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |