How I can execute a file.bat ? 
Author Message
 How I can execute a file.bat ?

How I can execute a file.bat in jscript or VBScript?


Fri, 01 Mar 2002 03:00:00 GMT  
 How I can execute a file.bat ?


Quote:
> How I can execute a file.bat in jscript or vbscript?

Try using this function:

        function runit()
        {
                var o = new ActiveXObject("WScript.Shell");
                o.Run(file.exe);
        }

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.



Fri, 01 Mar 2002 03:00:00 GMT  
 How I can execute a file.bat ?
FileSystem Object tutorial
http://msdn.microsoft.com/scripting/default.htm?/scripting/vbScript/d...
--
mvp Mark L. Ferguson Please reply in newsgroup
marfers notes for OE 5 > (16K) http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm
Quote:

> How I can execute a file.bat in jscript or vbscript?



Fri, 01 Mar 2002 03:00:00 GMT  
 How I can execute a file.bat ?
See the WSH docs for the (WScript) WshShell object which has a Run method...

http://msdn.microsoft.com/scripting/windowshost/beta/doc/wsObjWshShel...

--
Michael Harris


| How I can execute a file.bat in jscript or vbscript?
|
|



Fri, 01 Mar 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Executing .js files like .bat files

2. Executing an .bat file on my webserver

3. How to execute a file.bat

4. Executing a bat file form ASP

5. How to execute a file.bat

6. bats bats bats halloween

7. .bat Execute with ASP...

8. .Bat Execute with ASP

9. HTML execute command (exe,bat,cmd)..

10. Execute a Bat Utilizing VBS (not asp or wsh)

11. Running DOS BAT file from VBS file

12. to execute a BAT file from within a VBS file?

 

 
Powered by phpBB® Forum Software