ASP Code Passing Options To Command Line?

I need an ASP code that will pass some variables as options to a command line.

Let's say I need to execute a program with some options and I need the user
to select the otions from the web interface.

The command line will look something like this:

Program.exe /usename:username /password:password /options:option1,option2,option3

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?

View Replies


ADVERTISEMENT

Command LINE

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
%>

View Replies View Related

ASP Run Command Line

What is the proper syntax to run this command line in ASP?

wzzip.exe File.zip File.txt

View Replies View Related

How To Execute Command Line In ASP

Does anyone know how to execute command line in ASP?

View Replies View Related

IExplorer Command Line

I want to know IExplore.exe command line options, basically I want the command line equivalent of the following line:

Window.open(strUrl, winID, "toolbar=no, scrollbars=yes, location=no,
statusbar=no, menubar=no, personalbar=no resizable=yes, left = 50, top =
25");

View Replies View Related

Send Command Line

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

View Replies View Related

Command Line Execution

I have this command-line which I do execute it manually.I am curious if anyone can help to execute the command-line from an asp page using vb.

View Replies View Related

Command Line Queries

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:

mysqldump -u username -p password --databases myDatabase | mysql -u username -p password -h remote.server.com

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.

View Replies View Related

Executing A Command Line Applications...

Can someone give me some sample code on how one would go about executing a
command line "command" from within an ASP form?

We need to run an application called GnuPG which allows us to encrypt an
email.

Preferably some documentation directly on this would be good but any other
docuemtnation on executing a command line "command" would be great!

View Replies View Related

Winzip Command Line Utility Wzzip.eze Problem

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.

View Replies View Related

Line Of Code Problem

I am having some serious problems with a line of code in my banner rotation application. I have attached it. For some reason, in the banner.asp script (line 114, which I have commented out for debugging) is causing an error why I try to write the file). Basically the filename it is tryingn to write is "clicks1 .txt".
See the problem? The space between the "1" and the ".", and this is throwing an error. I've tried search and replace for the " " (space) and it doesn't work. How do I get this darn space off?To run, just browse to the file test.asp included in the .zip archive.

View Replies View Related

Jump To A Line Of Code

In VB there is the Goto Statement. In ASP, what would be the equivalent of that? My code looks something like this

For x = 0 to Counter - 1

' Checking for duplicate values
For
Checking for duplicate errors
If duplicate jump to NextVal
Next


' Meat of Code
I only what this to happen if there is not a duplicate

NextVal:
Next

View Replies View Related

Line Breaks In HTML Code

How is it you should format your ASP code to that when viewing the resulting
HTML text from the browsers "view code" it looks nice with line breaks?

View Replies View Related

Putting One Line Of Code On Different Lines

I know this is Visual basic code, but the response should be global. I one line of code that stretches from here to Mars. Infact, it was used to guide the last probe there. How do I make it go over seperate lines? Code:

View Replies View Related

Error - 2147217908 Command Text Was Not Set For The Command Object

I am getting the above error when trying to execute the following code:

View Replies View Related

Read Cell Data Line By Line From Excel

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?

View Replies View Related

Command Text Not Set Command Object

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:

View Replies View Related

Command Text Was Not Set For The Command Object

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.

Line 87
Line 87 = rs1 = conn.execute(finalSQL)

Here is the page causing the error. Code:

View Replies View Related

Command Text Was Not Set For 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:

View Replies View Related

Read Txt File Line By Line

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 ?

View Replies View Related

My Options

i thought id post it and see what more experienced people think. With firefox now the browser of choice with people in the know their lack of VBScript support is causing me problems. If i want to say validate my forms i must now do it on the server-side (which is probably safer anyways). But things like pop-up warnings ??? or if i want to perform _OnLoad, _OnClick, _OnChange events , what do i do ?? or more to the point what are my options if any. What is the general opinion on using VBScript with ASP pages.

View Replies View Related

ShadowUploader With Other Options

The code for ShadowUploader works great for me when I have it on a page by itself. My problem arises when I try to add other buttons. The “Upload” button still works but the other buttons act like just another “Upload” button. What am I overlooking?

<% Option Explicit
Response.Expires = -1000' Make browser not cache pg.
Response.Buffer = True' Buffer content so Response.Redirect will work.
%>
<!-- #include file="~incl/ShadowUploader.asp" -->
<!--#include file="~incl/~config.asp"-->
<!--#include file="~incl/jpsutility.asp"-->
<!--#include file="~incl/menu.asp"-->
<!--#include file="~incl/misc.asp"-->

...............

View Replies View Related

Number Of Options

I have an ASP variable which is a certain number. I want to create a Select tag in a form, which will be populated up to this number. So, for example, if my number was 7, you would have a list of numbers between 0 and 7 to select.I'm not sure how to do loops, but I had an idea that the code would look something like this:
Code:

<select name="select2" id="select">

<%
for i=0 to i=varNumber
Response.Write ("<option value='"& i &"'>"& i &"</option>")
rsBooking.MoveNext
%>

</select>

but, as you might guess, this doesn't play!

View Replies View Related

Reporting Options

I need suggestions to allow my users the ability to print reports from my ASP application that will be quick and easy setup. I need them to choose an option such as

Print all checks for the current week

and receive an output of 1 page per employee . Currently I have the page so someone can view 1 employee on the screen and manually print. But I am looking for some web based report delivery method that will be quick to implement so the user can preview the batch of reports and then print. Similiar to if you were running a report in access.

View Replies View Related

Color Options

I was asked to incorporate colour options for items sold in my shopping cart such as pens.So if I am selling a pen that comes in 4 or 5 or more colours, then I have to create the number of types of collours for the pen. I am looking at creating a colour dropdowns for individual items , but I am not sure how I can do this in backend.I am using Access database and using ASP programming. This is the link which is an example of what I mentioned http://www.27905398.com/product_inf...9a4aed0a18fb81d .appreciate if anyone familliar with this function

View Replies View Related

Folder Options From Asp

I need to know how to do the following..

Rename a folder

Check to see if folder exists and if it does return an error message.

View Replies View Related

Sort Options

Can u help me generate a javascript to sort the options(list) in an asp listbox control?

View Replies View Related

Sql Function Options

My Current project requires the use of ASP.I've been able to pick it up fairly quickly, but I'm curious to know if there is a function similar to the php mssql_num_rows().
This simply returns the number of rows returns with your specified query. So far my search through this forum hasn't returned anything of the like.The closest I have seen would be to execute another sql statement to count the result first. Which seems to be alot of double work.

View Replies View Related

Reload Options

We are viewing the same page on my server in New York. I submit or send something in to an ASP, and it returns to me an updated page. How do I get it to reload showing changes for you in Florida who is just sitting watching the page not touching anything?

I have a frames page setup. When I send in info, I have this code to show changes for me by an automatic reload. it works for me:

<javascript blah blah blah

parent.frames[2].location = 'dataRecov.asp?view=rs';"

How do I update your page in Florida live?

View Replies View Related

ADO Connection Options

where I can get a full list of ADO options for opening a recordset? I'm currently using adOpenForwardOnly but I want my recordset to be able to move backwards to the start of a recordset and several other functions.

View Replies View Related

Selection Options

i am using frontpage ,ASP, and some javascript. how do you create a START-> ALL PROGRAMS selection option. you place the mouse over the "all programs" and you got all selection related to "all programs"

i want to do the same thing with data from a database. how do i do this?

View Replies View Related

Email Options With CDONTS 1.2

I am trying to help out my friend by creating a invoicing page in ASP for his business, basically consisting of 3 pages :
(no sensitive info will be asked for.. )

1.info submission page -cust enters his info
2.info summary -cust info summarised plus quote calculated
3.invoice page -quote emailed for invoicing.

At present I have made the initial set up and it works fine. However, I am using CDONTS 1.2 to email the gathered cookies with the following code:

View Replies View Related

Shipping Options In My Cart?

I have created a few web site apps that use e-commerce technologies using ASP and XML. These are typical sites, with shipping, tax, blah blah. Usually it's standard shipping and is just related to the weight of the entire order.

Now, I've been asked to add several shipping options (i.e. Overnight, One-Day, Standard). My question...I did some searching around first but without luck...are the sites that offer multiple shipping options tied in with another company such as UPS? Or is it just more data that I can deal with on my own?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved