Executing a Batch File on another Computer 
Author Message
 Executing a Batch File on another Computer

I am trying to call/run a batch file on Computer B from Computer A via
an ASP page that is located on Computer A.  My ASP page uses a wshell
script.

Set WShShell = Server.CreateObject("WScript.Shell")
strConfirm = WShShell.Run("cmd \\computername\folder\file.bat", 1,
False)

However, I can't get it to work.  Does anyone know what is wrong w/ my
syntax or what is the correct way of going about it?

Tia



Fri, 16 Sep 2005 12:46:47 GMT  
 Executing a Batch File on another Computer
In the end you need to know how to write a '.bat' file.

There a few indivduals who may comprehend.

There are some at Standford with Ph.d, employed,
and still wondering, because MS

e.g. wrote their binaries on top of and into ftp.exe.

----------

If it only is an internal 'Windows' problem.
forgive those who think

ubiqutous Free-DOM

is not  localized freedom and justice.

------------

Send me your coloring book panic response anytime


Quote:
> I am trying to call/run a batch file on Computer B from Computer A via
> an ASP page that is located on Computer A.  My ASP page uses a wshell
> script.

> Set WShShell = Server.CreateObject("WScript.Shell")
> strConfirm = WShShell.Run("cmd \\computername\folder\file.bat", 1,
> False)

> However, I can't get it to work.  Does anyone know what is wrong w/ my
> syntax or what is the correct way of going about it?

> Tia



Sun, 18 Sep 2005 15:58:37 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. how to execute a batch file into a VBS file

2. Remote computer - Run batch file from mapped drive.

3. run a batch file on a remote computer with WSH

4. How to execute a batch file within a vbscript or activeX ftp object

5. Executing Batch Files

6. Executing batch files

7. Execute a batch file

8. Executing a batch file from a VBS.

9. Problems using WScript to execute a batch file

10. Executing batch files from Web Page

11. Executing Excel application in batch mode ?

12. ASP-executing a batch command

 

 
Powered by phpBB® Forum Software