M
michaeljnc
Recently I have encountered a problem with the fc command.
I have used this successfully for years.
If I enter:
fc /l c:\bat1\aurbk2.bat c:\batxp\aurbk2.bat
OR
fc c:\bat1\aurbk2.bat c:\batxp\aurbk2.bat
I get the following error:
FC: cannot open C:\BAT1\AURBK2.BAT - No such file or folder
Both files clearly exist.
On checking the file attributes, I found that the file had none.
When I added the Archive attribute to the file, the fc compare
worked.
Can someone tell me why this is happening and how can I
prevent the Archive attribute from being removed during
regular file edits and copying (assuming that the missing attribute
is causing the problem).
Thanks,
mjc
I have used this successfully for years.
If I enter:
fc /l c:\bat1\aurbk2.bat c:\batxp\aurbk2.bat
OR
fc c:\bat1\aurbk2.bat c:\batxp\aurbk2.bat
I get the following error:
FC: cannot open C:\BAT1\AURBK2.BAT - No such file or folder
Both files clearly exist.
On checking the file attributes, I found that the file had none.
When I added the Archive attribute to the file, the fc compare
worked.
Can someone tell me why this is happening and how can I
prevent the Archive attribute from being removed during
regular file edits and copying (assuming that the missing attribute
is causing the problem).
Thanks,
mjc