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


ADVERTISEMENT

Executing A Command Using Asp

I am using the below command to restart a service on one of my web
boxes, this runs fine from the command prompt and also through a *.bat
file.

"Server1Applist$BOBJCentralMSpsservice.exe" Server2 -u
eutee-ww02pUsername -p password restart BOBJCentralMS

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.

View Replies View Related

Executing A Db Command

when i want to do an action to the database i am using the command

Set myConn = Server.CreateObject("ADODB.Connection")
myConn.Open = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath("photoalbum.mdb") & ""
Set RS1 = myConn.Execute(SQL1)

is there something else i can use if it is only an INSERT statement in the sql because i dont actually need to create a recordset ?

View Replies View Related

Executing Post Command

My project is to go to this site: http://www.sanav.com/eric/gprs_read.aspx... write the text "351277000546068" in the textform and press submit. After I get the results of the page, I need the source of the page, either in a file locally or If it works I need to search for some strings on the results site.

So is there a way to do this programatically or is there a way to execute a POST command and call the same funciton as the website does?

View Replies View Related

Executing Sql Command -- Insert, Update And Delete

how can i make the function return true only if the execution is successfull (see bold red below)? Currently the function is returning true wheather it is successfull or not. Code:

View Replies View Related

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

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

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

Different WEB Applications

I´m developing different web applications each one located in a different web site, and sometimes we need to call a web page in a different application to retrieve some information.

We can not use the session object because the session is different for each
web application.Is there any way to share the information throw the applications?

View Replies View Related

Web Portal Applications

I came across a new term "web portal applications." Anyone can tell me
what's the differences between web portal applications versus traditional
web applications?? Portal applications only runs on .NET platforms, for
ASP.NET applications??

View Replies View Related

Sessions And Applications

For advanced projects,like my site,is it usual to have about 10 applications,and about 5 sessions open?I mean, that for my chat app for example, it opens a application for:

-- Number of users
-- Conversation
-- Users
-- Refresh times

I was wondering, is that too many, or do people usually have like 20 open for these kinds of applications?What I'm worried about is slow response time.will alot of Applications and Session Objects slow down my site?

View Replies View Related

Multiple ASP Applications

I've searched high and low but to no avail. Is anyone aware of a solution that will allow users on a website be able to sign in only once, but then have access to multiple web applications (such as forums, photo gallerys, etc.).

I have a few web applications from WebWiz, and others, and they all have different logon screens, and I'd really like to have my users signon just once, and have access to all the applications. This is also important when they sign up too - since I have 5 web applications, I don't want users to have to signup with all 5 applications.

View Replies View Related

Unable To Run Asp.net Applications

Prob is after setting up the IIS on XP Pro, I'm unable to run asp.net applications.
I get the message: " The web server is not running ASP.NET 1.1" each time i try to create asp.net application using .net 2003. I know the prob is due to config on IIS. but don't know how.

View Replies View Related

Protecting Applications

I've finally written an asp app that is worthy of resale and would like to hear from you who have done the same. What is the best way to protect my application? I would like to stay away from anything that has to be registered on the server as most of my target audience will not have physical access to their web servers. They will just upload the code to their server and set directory permissions for the database.

I 've purchased asp scripts myself in the past and had to provide a domain name where it would be running. It would not run on any other domain but the one I provided. Is this a practical approach or is there a better way? How is it done? I've also seen posts about putting some of the vb code into an activeX dll. Is this a solid solution? Again, How is this done?

View Replies View Related

Mail Merging For Web Applications

Can anyone suggest a good mail merging component that can be used in a classic asp web application? I'd like to use Adobe as the file that will be merged. Any suggestions?

View Replies View Related

Multi-user Applications

I am b-testing a community site, with currently 1,000 or so membership,
and low concurrency, say no more than 5 on-line at once.

The site is hosted on a shared server, which is sufferening from
intermittent accute slowness, affecting all other hosted sites as well as
mine.

The finger of suspicion is pointing at me and possible sloppy code. As
this is the first site I have done of this nature, could someone recommend
reading matter (knowledge bases etc), especially coding samples, in
connection with data connections (opening and closing connections and
objects) and record locking issues, which if improperly coded, could
contribute to throughput bottlenecks due to inefficient use of resources so
that I can check out my pages and correct any nasties..

View Replies View Related

ASP Running And Database Applications

Is it necessary for PWS or IIS mandatory for running ASP pages?

How can we know that in the system IIS or PWS is there??

How can we assign the same text boxes we already created in ASP, the values we get using database manipulations

(e.g) in case of viewing.. one text box we enter...the ID value of employee.

The remaining text boxes we already created, how to assign the values of the corresponding Employee?

It is simple in VB,like Textbox1.text = value..

But in ASP how it is??

View Replies View Related

AJAX Based Applications

Time is changed and you see almost all ruling companies in INTERNET are using AJAX Based applications. Something that is named CallBack Event in ADP.NET 2.0.Here in this topic i want to start introducing step by step an AJAX-Based application development.

The target is implementing a professional AJAX Grid in ASP. So at the end of this continuous tutorial i will put the source code free. Be in touch to find out how AJAX concept improves our ASP applications.

View Replies View Related

Web Applications Is Client-server Application?

My boss told me web application is NOT client-server application. I argued
with him because browser is the client, and the server code put in server.
Then web application should be a client-server application. My understanding
is that a web application is an application that runs on a browser. But
client-server application is not necessary a web application.

View Replies View Related

Test My ASP Applications On My Local Machine?

Quick question - I would like to practice my ASP scripting and wish to be able to test my applications on my web browser on my local machine.

What piece or pieces of software would I need to enable this? I have Macromedia Studio MX and Edit Plus which I assume will act as suitable editors for ASP scripts?

Is it only some kind of Personal Web Server software that I will need to run my scripts on my local machine?

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

Visual Studio .NET Has Detected That The Specified Web Server Is Not Running ASP.NET Version 1.1. You Will Be Unable To Run ASP.NET Web Applications Or Services.

i've installed vs.NET 2003 on my pc which is runing window 2000 pro with sp4, but when i'm trying to create new ASP.NET Web appication i got this messages "Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services."

View Replies View Related







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