473,326 Members | 2,095 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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.bat", vbNormalFocus
----------------------------------------------------------

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

How would one accomplish this same thing in ASP?

Thanks,

Brad
Jul 19 '05 #1
2 1828
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********@notreal.com> wrote in message
news:%2****************@TK2MSFTNGP11.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.bat", vbNormalFocus
----------------------------------------------------------

This would run the "runthis.bat" 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_darkfalz.com> wrote in message
news:Oj**************@TK2MSFTNGP12.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********@notreal.com> wrote in message
news:%2****************@TK2MSFTNGP11.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.bat", vbNormalFocus
----------------------------------------------------------

This would run the "runthis.bat" 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
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...
0
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)...
1
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...
12
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...
8
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...
6
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...
8
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...
0
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...
2
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.