472,976 Members | 1,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

WScript.Shell to execute Ms-DOS commands?

Good morning everybody,

How can I use WScript.Shell to execute Ms-DOS commands and can I see the
outputs commands in the asp page?

In the past, using Win. NT 4 Server and cmd..shell attribute to a variable I
could write the results in the screen page.

Any sample?

I couldnīt find any samples yet for win. 2000,ms-iii 5.0 and asp in my help
files, tutorials and guides, etc...
Jul 19 '05 #1
2 18029
What you could do is have a script to perform the dos
based operations and store results to a temporary text
file. Then have the asp page load and/or parse the text
file for display in the browser...

Examples can be seen here

http://www.microsoft.com/technet/treeview/default.asp?
url=/technet/prodtechnol/acs/proddocs/ac2k/accf_refs_samp.a
sp
Jul 19 '05 #2
hi people!
I am so sorry because the samples do not run ok nor using batch file or
using directly ms-dos command!
http://www.aspfaq.com/show.asp?id=2059

http://www.microsoft.com/technet/tre...hnet/prodtechn
ol/acs/proddocs/ac2k/accf_refs_samp.asp

only run as I used before with net send!

any solution??

thanks
VILMAR
BRAZIL

<an*******@discussions.microsoft.com> escreveu na mensagem
news:f0****************************@phx.gbl...
What you could do is have a script to perform the dos
based operations and store results to a temporary text
file. Then have the asp page load and/or parse the text
file for display in the browser...

Examples can be seen here

http://www.microsoft.com/technet/treeview/default.asp?
url=/technet/prodtechnol/acs/proddocs/ac2k/accf_refs_samp.a
sp

Jul 19 '05 #3

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

Similar topics

8
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork =...
0
by: Aayush Dubey | last post by:
Hi, I cannot execute the batch file through my ASP page..The code is below Set WShShell = Server.CreateObject("WScript.Shell") s=WshShell.Run("c:\aayush\test.bat",1,False) the drive c: is...
2
by: Marcin Zmyslowski | last post by:
Hello all! I have installed MSDE on my local computer - Windows 2000 Professional. I have created a function which runs me a link whose path is placed in the input field. This function looks...
6
by: MacKenzie | last post by:
The statement in an asp page: dim objShell Set objShell = WScript.CreateObject("WScript.Shell") now gives this error: VB err= 424,Object required If I use...
2
by: Mike John | last post by:
I am trying to use the shell object to send keys to the explorer browser to run the send page funcion. I am receiving the above error only when I put my html file in the web server...
6
by: ferg | last post by:
People; i'm from argentina so , sorry, but my english isnīt good... Now, the question is; I'm trying to run a *.bat program on an ASP page, with the wsh script, but i canīt do it... because i...
4
by: uinoma | last post by:
I want to open notepad in fullscreen mode, but this script that I created can't do that. . When I open Windows Manager Task, the program is just run in background, not appeared on web server...
0
by: edurran | last post by:
Hi all, I have spent the last three days on this problem. Looked in many forums and not found the answer as yet. Hopefully ye can help. I have two functions. One works fine, the second does...
0
by: AirYT | last post by:
Done a bunch of searching on this topic and i have come up with nothing. I have a .vbs script that i wish to execute by calling an asp page. i am working on a W2K server with IIS5.0 & SP4. ...
2
by: =?Utf-8?B?VG9kZA==?= | last post by:
Hello I'm using the following script to try and ping: <% Response.Buffer = true %> <% url = "www.espn.com" Set objWShell = CreateObject("WScript.Shell") Set objCmd = objWShell.Exec("ping " &...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.