Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Trying to run a batch file on a UNC path

$
0
0

I'm running a pretty simple script that loops through names on machines, and runs batch files.  Here's my code:

        Dim RetVal1 As String
        Dim RetVal2 As String
        RetVal1 = Shell("\\" & Cell & "\c$\Java\bin\service\StopServerService.bat", 1)
        RetVal2 = Shell("\\" & Cell & "\c$\Java\bin\service\StartServerService.bat", 1)

Each 'Cell' contains a machine name.

I keep getting a message about UNC paths not being supported.  I could swear this that was working last week!!


Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>