473,406 Members | 2,343 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,406 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 18045
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...

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.