• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Execute *.bat File from a Shared Network Drive?

TLB Sgt Stryker

Junior Member
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!
 
sc \\servername stop "Apache Tomcat6"
sc \\servername start "Apache Tomcat6"

Change your batch file to this.
 
Back
Top