473,808 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

running system commands from within ASP

What is the syntax for running say... a batch file (.bat) from within ASP?

For example... in MS Access you can say something like this...
----------------------------------------------------------
CurrentDBDir = "c:\"
ShellWait CurrentDBDir & "runthis.ba t", vbNormalFocus
----------------------------------------------------------

This would run the "runthis.ba t" file located in the c:\ directory...

How would one accomplish this same thing in ASP?

Thanks,

Brad
Jul 19 '05 #1
2 1841
there is the Shell call from wscript but you realize this will run on the
SERVER right?
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Brad Pears" <do********@not real.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
What is the syntax for running say... a batch file (.bat) from within ASP?

For example... in MS Access you can say something like this...
----------------------------------------------------------
CurrentDBDir = "c:\"
ShellWait CurrentDBDir & "runthis.ba t", vbNormalFocus
----------------------------------------------------------

This would run the "runthis.ba t" file located in the c:\ directory...

How would one accomplish this same thing in ASP?

Thanks,

Brad

Jul 19 '05 #2
Yes, I realize that. Not a problem as GnuPG will be installed on the
providers win2k3 web server.
Can you send me an exacmple of the actual syntax of the shell call?

Thanks,

Brad

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:Oj******** ******@TK2MSFTN GP12.phx.gbl...
there is the Shell call from wscript but you realize this will run on the
SERVER right?
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Brad Pears" <do********@not real.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
What is the syntax for running say... a batch file (.bat) from within ASP?
For example... in MS Access you can say something like this...
----------------------------------------------------------
CurrentDBDir = "c:\"
ShellWait CurrentDBDir & "runthis.ba t", vbNormalFocus
----------------------------------------------------------

This would run the "runthis.ba t" file located in the c:\ directory...

How would one accomplish this same thing in ASP?

Thanks,

Brad


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
8011
by: Hal Vaughan | last post by:
I need to be able to run external commands from within a Java program, on Linux and Windows (and eventually OSX). Under most circumstances there is no problem, but if the path I specify as part of the command has any spaces in it, or an argument for the command is a path with a space in it, or if I redirect the output to a file with a space in the filename, it doesn't work on Linux. I tried putting the paths in both single and double...
0
1058
by: jon c | last post by:
does anyone know a quick solution to the following problem (I know it's not directly python related) I am running on windows 2000 (yuk) and using python 2.3.2 i run the command os.system(cmd) where cmd is a very long string. i get the error "The following character string is too long:"
1
1701
by: sub1ime_uk | last post by:
I apologise if this is a well known problem. I've searched and can't find a clear description or fix. Hope someone can help. I am running my Python scripts under Windows 2000 using Python 2.4 Build 243 from Activestate. If I want to specify a file as standard input to my script I can just enter a command like: H:\> pyscript.py file.inp
12
12270
by: Jamie Ruff | last post by:
I am having problems with making system calls on Windows under Cygwin that involve the use of redirection operators and pipes. For example, the line below will cat two files, but the next command will not append the first file to the end of the second as expected and issues the error "Can't spawn "cmd.exe": No such file or directory at line x". If I issue the append command manually on the command line, then it works fine. system("cat...
8
1333
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland newsgroups I learned that there is a function in stdlib.h called system. int system(const char *command); First question, is the system command ANSI compliant. Because I include <cstdlib> and write std::system(command.c_str()); it looks like an...
6
1817
by: jsw_nz | last post by:
Helo, my first post here.... I am trying to run an agent application that converts and imports two tables from MS Access into mySql. (Intelligent Converters - Access2mySql) I have run similar scripts to do mysql dumps using the system function. Not sure if the paths included in the parameters are correct: <?php function import_data() {
8
3043
by: Paul Cochrane | last post by:
Hi all, I've got an application that I'm writing that autogenerates python code which I then execute with exec(). I know that this is not the best way to run things, and I'm not 100% sure as to what I really should do. I've had a look through Programming Python and the Python Cookbook, which have given me ideas, but nothing has gelled yet, so I thought I'd put the question to the community. But first, let me be a little more detailed...
0
1527
by: Mr Bounce | last post by:
Hi, Probably well worn ground, this, but im stumped and need some help, if you could: I'm trying to write some code for a windows service that needs to run in the background polling a server for commands. Certain commands require the service to interact with the application running on the active desktop, currently just to either shut it down or start it.
2
4343
by: MoshiachNow | last post by:
HI, I work locally on a Windows machine,no servers ! I display a big HTML log ,that includes 2 frames of JS. At the end of my HTML file,after 2 frames are build,I want to run a Windows system command (unzip some file to some destination),so that my links from HTML will work (unzipped files will be targets for my links). How do I get JS (or else) to run the above system command?
0
10373
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10113
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9195
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5547
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.