just something i made in my free time on win7
Posted: 10 May 2017 10:21
just something i made in my free time on win7:
it does not realy do anything...usefull that cmd cant do.
@echo off
color 0a
Title FILER.
set isfile=0
set backer=0
goto :notfindfile
:main
if %findfile%==0 if %checked%==1 if %equals%==1 goto :notfindfile
if %findfile%==0 if %checked%==1 if %equals%==0 goto :notfindfile
if %findfile%==1 if %checked%==1 if %equals%==0 set findfile=0
if %findfile%==1 if %checked%==1 if %equals%==1 goto :findfile
:checkdesktop
set checked=0
set euqals=0
dir /b > %monitor%\checker.txt
for /f %%Y in ( %monitor%\checker.txt ) do (
if %findfilename%==%%Y set equals=1
)
set checked=1
goto :main
:findfile
set string=%findfilename%}
:decostring
set stringa=%string:~0,1%
set string=%string:~1%
if %stringa%==}, goto :klar
if %stringa%==., set stringb=%memory%
if %stringa%==., set memory=
if %stringa%==., set isfile=1
set memory=%memory%%stringa%
goto :decostring
:klar
if %isfile%==1 goto :isfile
if %isfile%==0 cd %cd%\%memory%
set findfile=0
set memory=
set string=%string%0}
goto :decostringc
:isfile
set isfile=0
if %memory%==.ord goto :ord
if %memory%==.bat start %stringb%%memory%
set stringb=
set memory=
goto :decostringc
:ord
set string=
for /f %%Y in ( %stringb%%memory% ) do (
set input=%%Y}
)
set memory=
goto :deput
:notfindfile
set findfilename=default
set monitor=c:\users\%username%\desktop
set memory=
type %monitor%\checker.txt
set /p input=
cls
:deput
set string=%input%}
if %string%==} set string=0}
:decostringc
set checked=0
set equals=0
set findfile=0
set stringa=%string:~0,1%
set string=%string:~1%
if %stringa%==} goto :main
if %stringa%=={ set findfile=1
if %stringa%=={ set findfilename=%memory%
if %stringa%=={ set memory=
if %stringa%=={ goto :main
set memory=%memory%%stringa%
goto :decostringc
it does not realy do anything...usefull that cmd cant do.
@echo off
color 0a
Title FILER.
set isfile=0
set backer=0
goto :notfindfile
:main
if %findfile%==0 if %checked%==1 if %equals%==1 goto :notfindfile
if %findfile%==0 if %checked%==1 if %equals%==0 goto :notfindfile
if %findfile%==1 if %checked%==1 if %equals%==0 set findfile=0
if %findfile%==1 if %checked%==1 if %equals%==1 goto :findfile
:checkdesktop
set checked=0
set euqals=0
dir /b > %monitor%\checker.txt
for /f %%Y in ( %monitor%\checker.txt ) do (
if %findfilename%==%%Y set equals=1
)
set checked=1
goto :main
:findfile
set string=%findfilename%}
:decostring
set stringa=%string:~0,1%
set string=%string:~1%
if %stringa%==}, goto :klar
if %stringa%==., set stringb=%memory%
if %stringa%==., set memory=
if %stringa%==., set isfile=1
set memory=%memory%%stringa%
goto :decostring
:klar
if %isfile%==1 goto :isfile
if %isfile%==0 cd %cd%\%memory%
set findfile=0
set memory=
set string=%string%0}
goto :decostringc
:isfile
set isfile=0
if %memory%==.ord goto :ord
if %memory%==.bat start %stringb%%memory%
set stringb=
set memory=
goto :decostringc
:ord
set string=
for /f %%Y in ( %stringb%%memory% ) do (
set input=%%Y}
)
set memory=
goto :deput
:notfindfile
set findfilename=default
set monitor=c:\users\%username%\desktop
set memory=
type %monitor%\checker.txt
set /p input=
cls
:deput
set string=%input%}
if %string%==} set string=0}
:decostringc
set checked=0
set equals=0
set findfile=0
set stringa=%string:~0,1%
set string=%string:~1%
if %stringa%==} goto :main
if %stringa%=={ set findfile=1
if %stringa%=={ set findfilename=%memory%
if %stringa%=={ set memory=
if %stringa%=={ goto :main
set memory=%memory%%stringa%
goto :decostringc