S
Simon Hawking
I need help with an urgent problem.
We have recently migrated from NT to XP pro. We have since found that
several batch files we use no longer run under XP - yet the few remaining NT
machines work fine.
The problem is that the batch files make use of findstr to locate files
based on a keyword contained in some files, and the rest of the batch moves
the files as appropriate.
Example of code (repeated in batch file for each ID in numerical order):
ECHO PROCESSING... Searching for ID E000000
cd \
cd L:\journa~1\Bankma~1\E000000*
findstr /i /m /c:"E000000 " l:\journa~1\unknow~1\ej*.* >
c:\temp\Bankma~1.tmp
FOR /F "DELIMS=" %%F IN (c:\temp\Bankma~1.tmp) DO (MOVE %%F L
ECHO Search and process for ID E000000 completed.
I thought it was a problem with commands used, yet when doing a search from
within windows, XP is unable to find these files also - even though I know
they are there.
I was thinking that maybe find and/or findstr need to run in compatibility
for NT - yet this cannot be changes as they are core XP files.
Also, changes need to be implemented across all XP systems, so if this is
possible from the server - please advise.
I can see the files fine.
The attributes to the files have not been changed, and are located on the
server.
The only thing I can narrow down to is that XP cannot perform searches the
same way that NT does. So I need to figure out why, or how to get findstr to
run in NT compatibility (unless there's an easier way).
Help appreciated.
We have recently migrated from NT to XP pro. We have since found that
several batch files we use no longer run under XP - yet the few remaining NT
machines work fine.
The problem is that the batch files make use of findstr to locate files
based on a keyword contained in some files, and the rest of the batch moves
the files as appropriate.
Example of code (repeated in batch file for each ID in numerical order):
ECHO PROCESSING... Searching for ID E000000
cd \
cd L:\journa~1\Bankma~1\E000000*
findstr /i /m /c:"E000000 " l:\journa~1\unknow~1\ej*.* >
c:\temp\Bankma~1.tmp
FOR /F "DELIMS=" %%F IN (c:\temp\Bankma~1.tmp) DO (MOVE %%F L
ECHO Search and process for ID E000000 completed.
I thought it was a problem with commands used, yet when doing a search from
within windows, XP is unable to find these files also - even though I know
they are there.
I was thinking that maybe find and/or findstr need to run in compatibility
for NT - yet this cannot be changes as they are core XP files.
Also, changes need to be implemented across all XP systems, so if this is
possible from the server - please advise.
I can see the files fine.
The attributes to the files have not been changed, and are located on the
server.
The only thing I can narrow down to is that XP cannot perform searches the
same way that NT does. So I need to figure out why, or how to get findstr to
run in NT compatibility (unless there's an easier way).
Help appreciated.