General discussion
September 27, 2002 at 12:56 AM
tomhass

How get a “for /R” cmd run on NT 4 Srv ?

by tomhass . Updated 23 years, 9 months ago

I want to run a command on a Windows NT 4.0 SP6a server.

I wrote the following batch file to test on my XP PC first:-

for /R “C:\testdir\” %%1 IN (*.bm?) DO rename %%1 *.tif

This was top rename .bmp files to .tif (don’t ask..!).

Works fine on my XP PC but when I tried the same on my Windows NT 4.0 Server SP6a the command ran but it had added an extra slash (/) after the directory name – just after the last “. There was no error message but it didn’t do anything.

Please help.

P.S. – Also useful if anyone has a way to run a batch file in NT every 60 seconds….cheers.

This discussion is locked

All Comments