I am using command line utility of wzzip.exe in asp and vb script. When I try to use wzzip in asp, it sometimes works fine and sometime hangs. It doesn't give any error.
The server that the process is running on, if I logoff from that server, wzzip.exe hangs, however when I just "disconnect" from the server, it runs fine. This happens when I try to use wzzip.exe from my user interface. The code to invoke the shell is in a dll which resides in MTS. I am using the following wzzip command in asp.
cmd.exe/c "c:Program fileswinzipwzzip.exe -a
servernamefolderfilename.zip servernamefolderfolder_to_be_zipped
When I run it manually command line, there are no problems.
I have a similar job which I have in vbscript, that job runs without any
issues.
Im trying to use teh command line, for now i just want to do something realllly basic like opening a txt file. and then later i can do some more advanced stuff, but for now i just want to know if i can use the command line, right now i just have Code:
<% Dim oShell,sCommand sCommand = "test.txt C:" Set oShell = Server.CreateObject("Wscript.Shell") oShell.Run sCommand, , True Set oShell = Nothing %>
I'd like to send a variable generated in the script back to a batch file. I can run the batch file by using objShell.Run(lock.bat filename). My batch file lock.bat runs fine with the argument "filename", the problem is that "filename" is actually a variable that is created in the script and I want the value passed to the batch file, not the label. Any ideas/sampe code
I am running a dynamic site using MySQL and ASP and wish to back up my MySQL DB on a daily or weekly basis to a remote server/MySQL DB. I know how to do this from the command line using MySQL:
But i need to be able to issue this command from within an ASP page. PHP has various methods for executing command line queries such as exec() & shell_exec() but I don't know any using ASP.
The the user will access a web page and it will be asked for the username , password and it will be able to select the options by marking them on the page.
After the selection the command line will be executed with the selected oprions.
If somebody can point me to some example code or any hints to get me started I would appreciated it.
It is possible to specify also the credentials the "program.exe" should run under?
i wanted to get the 411 on this article. I want to create a small utility web site with a logon page and a form connected to an Access database.The article below explains exactly how but when I try this I can only see the code no actual logon page - nothing but code.
My system is asp allowed and asp.net extensions allowed. FP 2002 extensions allowed. All other extensions are prohibited. I am using w2k3 IIS 6.0 and running 3 html sites succesfully all with working forms. Is theresomething on the server/website itselfI need to enable?
I'm using ASP and I need to generate a ZIP file that contains a list of files that I'm pulling from a database. I've determined WinZip's command line parameters so that I can use it, the problem is I'm unsure how to run WinZip on the server.
Set WshShell = Server.CreateObject("WScript.Shell")
WshShell.Run("c:winzip.exe")
Assuming this would work, how do I get the process to terminate upon completion? I can't have 20-30 WinZip applications running on the server, I need it to handle what I send to it and then close. Maybe I'm taking the entirely wrong approach here.
how do i create a file download utility that limits the number of users? for example, a maximum of 5 users can download a particular file at the same time. i can use asp (not asp.net), javascript, maybe read/write a text file if necessary.
I'm experimenting with using Windows Scripting Host to open files via Shell. So far I can open Word docs and Winzip archives. Is it possible with Shell to programatically cause winzip to extract an archive it to a particular folder? Self-Extractor isn't an option in this case.
I had created a macro to read data from an excel sheet and write the values to a text file. I had used "ActiveSheet.Range("GB" & k).Value" command to read the values from the excel.some cells in the excel sheet is having two lines value and four lines data, the text file is generating that value in a single line. (Ex. the cell value in address column is in four lines and should display in four lines in the text file generated from the macro)
Can i do something in the excel sheet or in vb script to read the address value line by line and write line by line in text file?
I have an online application. I get the following error when a user selects an option from one drop down list but doesn't select an option from another drop down list. Here is the error:
Microsoft OLE DB Provider for SQL Server error '80040e0c' Command Text was not set for the command object. Code:
I have an online application. I get the following error when a user selects an option from one drop down list but doesn't select an option from another drop down list. Here is the error:
Microsoft OLE DB Provider for SQL Server error '80040e0c' Command Text was not set for the command object.
I keep getting this error. I searched the forums, and found one. It said to basically replace elseif with else. It worked for that person.
I tried it and it didn't work. So what i decided to do was, remove all of the if statements and keep one. Even with just one if statement i get the same problem. Does anybody know what is wrong? It worked fine, up until i added the if statement. I need them there though for a reason.
Personally i think, it;s not getting the value from the request form, and hense it isn't picking anything up. What do you lot reckon? Code:
I have an encrypted .txt file created by asp. Its formatted with lines etc. Title followed by description underneath. I need to read this into ASP now, and parse it line by line. On each line read, run the function to unencrpt and add line to a new file.
Its the line by line Im having trouble with. If i do the full textstream no formatting takes place coz im adding the fulltextstream all in one addline call. How can I loop through lines ?
I have a form that uses the POST method to call up test.asp and it passes what is typed into the text box. Since is uses the Like command the user can enter stuff like %Constant% to get something that is like what the user typed in. When I call up the test.asp page it is grabbing the text fine but isn't running the SQL command the correct way. The SQL command ends up being:
SELECT * FROM [Everyone] WHERE (Name LIKE ':: & strName & ::')
Here is my code
strName = Request.Form("Search") Set Conn = Server.CreateObject("ADODB.Connection") Set Rs = Server.CreateObject("ADODB.RecordSet") Conn.Open "PhoneList" sSQL = "SELECT * FROM [Everyone] WHERE (Name LIKE ':: & strName & ::')" Set Rs = Conn.Execute(sSQL)
I am using DW to create this ASP page and I need to do a simple calculation that will result in a cell being 10% of the previous cell. I am using this statement:
I would like to use the sql command to query the database from ASP. But it keep showing me the error. Select location from the table tapeinfo. The location must start with "Data". Here is the command?
'sqlStrl="SELECT * FROM tapeinfo WHERE location like ' "&Data&"% ' "
Anyone can help me to verify whether it is correct?
I have a form that uses the POST method to call up test.asp and it passes what is typed into the text box. Since is uses the Like command the user can enter stuff like %Constant% to get something that is like what the user typed in. When I call up the test.asp page it is grabbing the text fine but isn't running the SQL command the correct way. The SQL command ends up being
SELECT * FROM [Everyone] WHERE (Name LIKE ':: & strName & ::')
Here is my code
strName = Request.Form("Search") Set Conn = Server.CreateObject("ADODB.Connection") Set Rs = Server.CreateObject("ADODB.RecordSet") Conn.Open "PhoneList" sSQL = "SELECT * FROM [Everyone] WHERE (Name LIKE ':: & strName & ::')" Set Rs = Conn.Execute(sSQL)
Some of these could be null but what i need to do is caputre the highest number and place that in a database. I assume i can use the max command but a bit unsure how to do it.
I am having trouble trying to figure out how to properly enter a checkbox in the SET statement so I can update the checkbox value based on user's input. I know for number values you enter the variable like this: Code:
Owner = own
and for text you enter like this: Code:
Priority = 'pri'
and for dates you enter the variable like this: Code:
tdate = #td#
but how do you create the variable in the SQL statement so it updates a checkbox value? Below is my SQL statement, and the checkbox name is "Active" Code:
I found this asp code in this forum but can not get it to work with my command
<% Dim oShell, sCommand sCommand = "MyCommand" Set oShell = CreateObject("WScript.Shell") oShell.Run sCommand, , True Set oShell = Nothing %>
I replace "MYCommand" with the command i wish to execute but the page just hangs with the blue status bar halfway complete at the bottom, when checking the services on the box it is not restarted.