Execute Command Lines

I need to be able to execute DOS command lines via ASP. This would include running an .exe along with passing commands/switches.The platform is Win2k/IIS.Is this easily accomplished with ASP?

View Replies


ADVERTISEMENT

Execute A DOS Command

with dos command of " ipconfig/all>c:ip.txt " I can retrieve some info and save it in a text file of ip.txt, now I am wondering if there is a way to do the same thing within asp?

View Replies View Related

Execute A Remote Command

I have a shell script that needs to be executed on a unix machine on our network and text output needs to be retrieved How can I make a asp.net page do it ?

is there a way to batch execute the command that I execute in the command prompt and just retrieve the outoput.

Here is what I am manually executing currently from the dos command prompt

Step 1. telnet <unixmachine>

Step 2. login <login name>

Step3. I Provide the password

Step4. once logged in to the machine I Provide the <shell script command>

The results of the script get displayed on my command window. I copy and paste the result

can the above be done through asp/asp.net page

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

Execute Command From A String

I am trying to make our website a bit more dynamic. one of the ways i want to do this is to be able to put in ASP code into our MySQL database (the code would be different for every company) and have it execute when the page is brought up.

We have the potential of having thousands of companies using our website, so having it hard coded will be hard to maintain, and having it save to a file will become cumbersome if there are too many users. Anyone have any ideas on how to execute a piece of ASP code straight from a string varaible?

View Replies View Related

How To Execute A Command On Server Side

I would like to know how could I execute a
command/script on server side which is located in the same
directory as the asp ? And how could I response.write()
the result?

View Replies View Related

Server.execute Command Inside Global.asa

Question. Is it possible to run Server.execute command inside global.asa
file. if it is where. Inside Application onstart?

View Replies View Related

Checking For No. Of Rows Affected Using Command.Execute

DBMS: MS Access 2000
ADO Version: 2.8
IIS Version: 5.1

I'm trying to use the ADO's Command object, Execute method to execute a SQL Update Statement. I would like to ask how do I check for the no of rows affected by the SQL Update command.

View Replies View Related

Server.Execute Command Disables Body OnLoad

i have this web page which on loading shows + hides a selection of div's using the command : Code:

<body onLoad="showHide()">

i wanted to include a standard banner by adding the command : Code:

<%
Session("titleString") = "some title"
Server.Execute "index.asp"
%>

but this seems to disable the onLoad command, presumably because there is already a full header and body in the "index.asp" file

the reason why i didn't use the "include file" command here was because the latter won't allow the title string to be fed through

the question is : is there an alternative way to execute either the "Server.Execute" or the "body onLoad" command that will allow the function showHide() to work ?

the same function is also called from a "select" form element Code:

<select onChange="showHide()">

and that works fine, so the problem definitely lies with the onLoad command, not the showHide() function.

View Replies View Related

Asp (visual Basic Script) Break Long Text Lines Into Several Lines.

asp (visual basic script) break long text lines into several lines.

This line of my guestbook (visual basic script) - response.write "message: " & Recordset ("message") & "<br><br>" displays access database field "message" in one line in web browser.

How do I break this text line into several lines? I know in asp.net there is datagrid. Is there something like datagrid in asp. Or perhaps this problem can be solved with htm?

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

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

Last 30 Lines

Got a total blank on this one this morning, could anyone point out how I read a specified number of lines from a textfile, the last 30 in this case. (I know I'm gonna have to use the fileSystemObject before anyone mentions it.)
I'm guessing I could use a for i = 1 to 30 loop but I'm completely at a loss this morning if anyone has a nice efficient way of doing it

View Replies View Related

Black Lines

I'm butchering up the top part of my site so I can make it percentages and make it the same size on every browser.

http://vgameforce.com/gfv8test.asp

If you go there you'll see a black line that disects mario and ninja gaiden. I don't want that line there but I want those to be seperate images.

View Replies View Related

Blank Lines

I am creating a directory of suppliers.I have a form that collects data - business name, address1, address2, town, city, county, country, postcode.
The data is stored in separate fields in an Access database. Another page is used to display the data, one field per line. However, if some of the fields are blank, I want to suppress the blank liens as at the moment I am getting:

My Business Name
1 High Street

Any Town

Any County
Postcode
United Kingdom

View Replies View Related

Erasing All Lines

I know how to read a text file in ASP, I know how to append lines to a text file. How do I simply erase all lines from a text file?

View Replies View Related

Retrieving Lines From Other ASP Pages

I have been asked to design a ASP page that retrieves the URL and a line of text that contains the version number from a number of pages in our software.

The idea is that if we get a email to our support dept we can check to see what version the client has to ensure that they have got the updated versions instead of getting the client to search through for the Version No.

What I need to know is if I can retrieve a line of text from all our asp pages and then populate it into a table with the page URL and the Version number using ASP.

View Replies View Related

Splitting Lines Of Code

if i wanted to split the below SQL statement on two lines, what would the
syntax be....

SQL = "UPDATE gallery WHERE g_id = " & Request.Form("g_id") &
"SET g_name = " &
Request.Form("g_name") &
"g_add = " &
Request.Form("g_add") "

View Replies View Related

Question About Split And New Lines

This code works great unless the data strValue doesnt have any new lines or no data... i get the error

Microsoft VBScript runtime error '800a005e'

Invalid use of Null: 'Split'

is there a way to allow it to return null or something? Code:

View Replies View Related

Display Multiple Lines

Can anybody give me some tips on the best and/or easiest way to display
multiple lines in a field. The data is collected from a "textarea" field
when the form is submitted, and I want to display all of the data (multiple
lines) in a resulting HTML page. The data displays on a single line
(obviously) and does not wrap without manipulation of the string variable.
Is there an easier way to display the data?

View Replies View Related

Remove Text Box Lines

Is there a way to remove text box lines so that a user doesn't realize that information is sitting in a text box?

View Replies View Related

Record Lines Without Tables

I regularly code in standard asp with MySQL. I have a page which displays records with the background colour of each record table row in a different colour. There are 2 table rows per record. The problem is that at the end of each field in a row, the background
colour stops and then continues in the next field, i.e. the rows look like a brick wall design.

Is there anyway I can adjust my designs so that no matter how many fields or rows I have, the background colour is seamless and the visitor cannot see the start and end sections of each field ?

View Replies View Related

New Lines From Database To Browser

I entered the data in the database table but, when I print this data on html page thro' asp script. I don't see my new lines. I tried by storing <br>(html new line tag) in the database. Then I am getting only 1st word of each line.

View Replies View Related

Count Lines In A File

is it possible to count the number of lines i a text file, whith the filesystem object. is it just stream.countlines ?

View Replies View Related

Remove Multiple Lines?

i'm creating an app where the user will copy/paste BIG word documents into a textbox to save into db. problem is -> some of the documents have a lot of whitespace which needs removed.

anyone know of a script / method to remove multiple lines of whitespace? i.e. if i come aross a large portion of whitespace (extra lines) i want to remove them and leave only one <br /> line in it's place.

View Replies View Related

Writing Multiple Lines Into A Database

When inserting multiple lines into a database asp removes the whitespace so:

hello
all

becomes

hello all

is there any way to detect the return and inset it as intended ie:

hello
all

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

Merge Lines In A Text File

I am working with an old line-feed printer text file. There are characters in the first position of each line that tell the printer what to do, i.e. print this line and advance paper, print and do not advance. when processing this text file for conversion to another text file I can't seem to work out the code for merging two lines. For example,

Type: Location: Quantity:
+ 123 London 45000

After processing the line should look like this:
Type: 123 Location: London Quantity: 45000

I understand the concept but have no idea how to actually merge the two lines with code.

View Replies View Related

Print From ASP How To Break The 400 Lines Page

I have to make a print page that have 400 lines. How to break it in few pages? How to contrl it?

View Replies View Related

Display Data 20 Lines Per Page

how do i display data retrieved from a table 20 lines per page giving a 'next ' button at end of each page.

View Replies View Related

Loop Over Text File Lines

I have just registered as I have found this very useful saveas asp script but I want to modify it to read in a list of image url's from a text file and save them automatically
Can anyone help me with the looping code to do this?

View Replies View Related







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