|
 |
asp_web_howto thread: RE: How to run MS DOS command via ASP
Message #1 by "Medlen, Jiri" <jmedlen@v...> on Tue, 10 Sep 2002 09:39:41 -0700
|
|
Hello,
I have used aspexec.
When I use 1 thread (LoadRunner) it is working fine.
When I used 2 threads (LoadRunner) it is not working very well.
This dll is not able to handle multiple threads.
Any other ideas?
Thanks,
-Jiri-
-----Original Message-----
From: Claudio M. E. Bastos Iorio [mailto:mcclau@p...]
Sent: Friday, August 16, 2002 12:16 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: How to run MS DOS command via ASP
U can use a component called aspexec...
_____
Claudio M. E. Bastos Iorio
Blumer -=3DExcelence in IT Solutions=3D-
-Web Development
-Web Design
-Web Solutions
To Contact point your browser to http://www.blumer.com.ar
MSN: clauska@h...
Yahoo! Messenger: selecters75@y...
Phone: 54 11 1551467975
Adress: Av Chiclana 3735 Of: C (1262) - Cap Fed
2002 Buenos Aires - Rep. Argentina
=A5=A4=A5clau=A7ka=A5=A4=A5=AE =A5=A4=A5=A7electer=A7=A5=A4=A5=AE
ICQ#: 24094716
_____
-----Original Message-----
From: Medlen, Jiri [mailto:jmedlen@v...]
Sent: Friday, August 16, 2002 4:03 PM
To: ASP Web HowTo
Cc: ASP Web HowTo
Subject: [asp_web_howto] How to run MS DOS command via ASP
Hello,
I need to run some MS DOS programs via Web server.
Is it there way how to run e.g DIR via ASP?
Thanks,
-Jiri-
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogram
me
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogram
me
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogram
me
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogram
me
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogram
me
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogram
me
r-20
Message #2 by jeff.montgomery@m... on Thu, 12 Sep 2002 03:25:19
|
|
You can use the Shell object to run DOS commands like this:
Dim objsh, cmd
cmd = "notepad c:\"
Set objsh = WScript.CreateObject("WScript.Shell")
rslt = objsh.Run(cmd, 1)
However, if you really want a directory listing, you'll need to use
something else, because there is no direct way to get the results of the
DIR command this way. Check the Microsoft documentation/examples for the
Scripting.FileSystemObject. What you want is the Files collection of the
Folder object. Here is their sample code:
Function ShowFileList(folderspec)
Dim fso, f, f1, fc, s
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.Files
For Each f1 in fc
s = s & f1.name
s = s & "<BR>"
Next
ShowFileList = s
End Function
Jeff Montgomery
jeff.montgomery@m...
> Hello,
I need to run some MS DOS programs via Web server.
Is it there way how to run e.g DIR via ASP?
Thanks,
-Jiri-
|
|
 |