Here are the responses I got:
After the line that reads: for /f "eol= tokens=*" %%i in (temp.txt) do (
Error says: %%1 was unexpected at this time.
After line that reads: xcopy /r /y %%i c:\vss_com
Error says:File not Found - %%1
After line that reads: sc delete "Symantec SymSnap VSS Provider"
Error says: [SC] OpenService FAILED 1060: The specified service does not exist as an installed service.
After line that reads: call C:\Comfix\com.vbs
Error says: 'C:/COmfix/com.vbs is not recoginized as an internal or external commend operable3program or batch file.
Hopefully this helps solve the problem.
Full CMD windows shows:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\John>REM If c:\vss_com does not exist then create a new folder
C:\Users\John>
C:\Users\John>if not exist c:\vss_com mkdir c:\vss_com
C:\Users\John>
C:\Users\John>REM search for a particular file and copy that in a file
C:\Users\John>
C:\Users\John>dir /b /s %windir%\WinSxS\R000000000001.clb > temp.txt
C:\Users\John>
C:\Users\John>REM go thru the list and copy it to destination folder
C:\Users\John>
C:\Users\John>for /f "eol= tokens=*" %%i in (temp.txt) do (
%%i was unexpected at this time.
C:\Users\John>
C:\Users\John>xcopy /r /y %%i c:\vss_com
File not found - %%i
0 File(s) copied
C:\Users\John>
C:\Users\John>)
C:\Users\John>
C:\Users\John>REM delete "Symantec SymSnap VSS Provider" service
C:\Users\John>
C:\Users\John>sc delete "Symantec SymSnap VSS Provider"
[SC] OpenService FAILED 1060:
The specified service does not exist as an installed service.
C:\Users\John>
C:\Users\John>REM Remove %windir%\installer\{B0255743-165B-4BD5-8DA8-37DFB9?9300
15} directory
C:\Users\John>
C:\Users\John>if exist %windir%\installer\{B0255743-165B-4BD5-8DA8-37DFB9?930015
} rmdir /s /q %windir%\installer\{B0255743-165B-4BD5-8DA8-37DFB9?930015}
C:\Users\John>
C:\Users\John>REM execute com.vbs
C:\Users\John>
C:\Users\John>call C:\Comfix\com.vbs
'C:\Comfix\com.vbs' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\John>
C:\Users\John>^A
C:\Users\John>
I then fixed the line parsing for the line that starts "for /f...", and copied the files into the root COMFIX folder.
I then got the error:
Script C:\Comfix\com.vbs
Line: 3
Char: 1
Error: The system cannot find the file specified
Code: 80070002
Source: (null)
What now?