-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFor D.bat
More file actions
32 lines (30 loc) · 832 Bytes
/
For D.bat
File metadata and controls
32 lines (30 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
echo this is wrote by ivandrofly
REM FOR /D /r %%G in ("*") DO (
REM REM Echo We found %%G
REM if /i "%%~nG" == "ivandro" (
REM echo Ivandro found
REM )
REM )
pushd "d:\"
For /f "tokens=*" %%G in ('dir /a /o /b') do (
echo .\%%G
)
popd
pause >nul
REM For /f "tokens=*" %%G in ('dir /a /o /s /b') do (
REM If /i "%%~nxG" == "autorun.inf" (
REM Echo Skipped --^> %%~sG
REM Set /a skip += 1
REM REM ACTUALLY I STOP USING THE ICON NAME AS DRIVER.ICO
REM ) Else If /i "%%~nxG" == "Driver.ico" (
REM Echo Skipped --^> %%~sG
REM Set /a skip += 1
REM ) Else (
REM Rem The /D switch is only valid with the /S switch.
REM Rem I add to restore only file without system attribute
REM Attrib -h -s -r "%%G" >nul
REM Echo Processed --^> %%~sG
REM Set /a rest += 1
REM )
REM )