Execute *.bat File from a Shared Network Drive?

TLB Sgt Stryker

Junior Member
Feb 1, 2011
2
0
0
Is there any way for a user to execute a *.bat file located on a Win 2003 srvr via shared network drive without the use of 3rd Party SW such as WinRShd, DoIt, PSExec or even MMC. Having user RDP into srvr is not an option, has to be done via Share Drive only.

The batch file is located on Win 2003 srvr...let's call it D:\Tomcat
\TomcatRestart.bat.

TomcatRestart.bat is this...

NET STOP "Apache Tomcat6"
NET START "Apache Tomcat6"

A win XP user has a drive mapped to the Win 2003's D:\Tomcat folder with Full Control privs. When user executes TomcatRestart.bat, it wants to run the bat file as though it sits on user's OS and not from Win 2003 srvr so they see the Command Prompt window flash for an instant but the service does not restart.

The reason trying this method is my customer/user is not an IT Admin but a power user of the J2EE application Tomcat is running.

Thanks!
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
sc \\servername stop "Apache Tomcat6"
sc \\servername start "Apache Tomcat6"

Change your batch file to this.