Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title RECURSOS DIVERSOS
- :inicio
- color 2f
- cls
- echo =============================================================
- echo RECURSOS DIVERSOS
- echo =============================================================
- echo.
- echo [1] CRIAR ARQUIVOS
- echo [2] ORGANIZAR ARQUIVOS
- echo [3] OCULTAR ARQUIVOS
- echo [4] EXIBIR ARQUIVOS
- echo [5] EXCLUIR ARQUIVOS
- echo [6] SAIR
- echo.
- echo =============================================================
- set /p op=Escolha a sua opcao...
- if "%op%" == "1" goto:criar
- if "%op%" == "2" goto:organizar
- if "%op%" == "3" goto:ocultar
- if "%op%" == "4" goto:exibir
- if "%op%" == "5" goto:excluir
- if "%op%" == "6" goto:sair else
- echo OPCAO INVALIDA!!!
- pause
- goto inicio
- :criar
- for /L %%n in (1,1,4) do echo set dir > arquivo%%n.doc
- for /L %%n in (1,1,4) do echo set dir > arquivo%%n.xls
- for /L %%n in (1,1,4) do echo set dir > arquivo%%n.ppt
- for /L %%n in (1,1,4) do echo set dir > arquivo%%n.mdb
- pause
- goto inicio
- :organizar
- c:
- cd\Users\%username%\Desktop
- md word
- md excel
- md powerpoint
- md access
- for /L %%n in (1,1,4) do move arquivo%%n*.doc C:\Users\%username%\Desktop\word
- for /L %%n in (1,1,4) do move arquivo%%n*.xls C:\Users\%username%\Desktop\excel
- for /L %%n in (1,1,4) do move arquivo%%n*.ppt C:\Users\%username%\Desktop\powerpoint
- for /L %%n in (1,1,4) do move arquivo%%n*.mdb C:\Users\%username%\Desktop\access
- cls
- echo ARQUIVOS ORGANIZADOS COM SUCESSO!!
- pause
- goto inicio
- :ocultar
- cls
- call login.bat
- c:
- cd\Users\%username%\Desktop\
- attrib word +h +r
- attrib excel +h +r
- attrib powerpoint +h +r
- attrib access +h +r
- cls
- color 2f
- echo ARQUIVOS OCULTADOS COM SUCESSO!
- pause
- goto inicio
- :exibir
- cls
- call login.bat
- c:
- cd\Users\%username%\Desktop
- attrib word -h -r
- attrib excel -h -r
- attrib powerpoint -h -r
- attrib access -h -r
- echo ARQUIVOS REEXIBIDOS COM SUCESSO!
- pause
- goto inicio
- :excluir
- cls
- call login.bat
- set /p deleta=Deseja realmente excluir os arquivos? [s/n]...
- if "%deleta%" == "s" (
- C:
- cd\Users\%username%\Desktop
- del /f /s /q "word"
- del /f /s /q "excel"
- del /f /s /q "powerpoint"
- del /f /s /q "access"
- rd word
- rd excel
- rd powerpoint
- rd access
- cls
- echo ARQUIVOS EXCLUIDOS COM SUCESSO!!!
- pause
- goto inicio) else (goto inicio)
- :sair
- set /p resp=Deseja realmente sair? [s/n]...
- if "%resp%" == "s" (exit) else (goto inicio)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement