venim
1
Hello all,
I have a netlogon.bat batch script, which I want to run some commands upon login for all hosts except one (computername: PC2). Currently I have the following script:
CODE
if "%COMPUTERNAME%" == "PC2" goto OUT
@del c:\windows\*.pwl
regedit /s \\myserver\netlogon\nocache.reg
:OUT
echo exiting
:END
which doesn't work the way I want, it runs 'del' & 'regedit' for all hosts.
Any batch script wizards around here ?
(btw. all hosts run win98 & the server runs samba on linux)
I have a netlogon.bat batch script, which I want to run some commands upon login for all hosts except one (computername: PC2). Currently I have the following script:
CODE
if "%COMPUTERNAME%" == "PC2" goto OUT
@del c:\windows\*.pwl
regedit /s \\myserver\netlogon\nocache.reg
:OUT
echo exiting
:END
which doesn't work the way I want, it runs 'del' & 'regedit' for all hosts.
Any batch script wizards around here ?
(btw. all hosts run win98 & the server runs samba on linux)