Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Script is not working when i Give run as administrator

$
0
0

Hi All,

Please guid me in understanding this problem.

I have a batch file. When i run the file normally just by clicking, it runs.

But when i give run as administrator,

it throws below error,

 

 'startServer.bat' is not recognized as an internal or external command,
operable program or batch file
.
'wsadmin.bat' is not recognized as an internal or external command,
operable program or batch file
.
'stopServer.bat' is not recognized as an internal or external command,
operable program or batch file
.
Press any key to continue...`

 

 

My Script is below, Please check and advise

@echo off
call startServer
.bat server1
call wsadmin
.bat -f configldap.py
call stopServer
.bat server1
pause
`
 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles