Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 67 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. @echo off
  2. :start
  3. cls
  4. echo.
  5. echo What you want to do?
  6. echo.
  7. echo 1) Backup files
  8. echo 2) Hide or unhide backup folder
  9. echo 3) Upload backup folder to ftp server
  10. echo 4) Download backup folder from ftp server
  11. echo 5) Rar or Unrar
  12. echo 6) Search
  13. echo 7) System info
  14. echo 8) Exit
  15. echo.
  16. set /p option=Select numer:
  17. if %option%==1 goto option1
  18. if %option%==2 goto option2
  19. if %option%==3 goto option3
  20. if %option%==4 goto option4
  21. if %option%==5 goto option5
  22. if %option%==6 goto option6
  23. if %option%==7 goto option7
  24. if %option%==8 exit
  25. goto wrong
  26. :option1
  27. cls
  28. echo Backup  files
  29. echo Enter source to folder to backup
  30. set/p "s=>"
  31. echo Enter destination backup folder
  32. set/p "d=>"
  33. if exist %d% goto backup
  34. if exist not %d% goto md
  35. :md
  36. mkdir %d%
  37. echo %d% folder created
  38.  
  39. :backup
  40. xcopy %s%* %d% /s/d/y/c/v/r
  41. echo.
  42. echo Backup %s% to %d% completed
  43. echo.
  44. pause
  45. goto start
  46. :option2
  47. cls
  48. echo Hide/Unhide files
  49. cls
  50. @Echo OFF
  51. if EXIST "File lock_key" goto unlock
  52. if NOT EXIST Backup goto madefolder
  53. :hide
  54. echo.
  55. echo Make sure lock_key is in same catalog as your backup folder
  56. echo.
  57. echo Do you wanna lock and hide your backup folder?(Y/N)
  58. set/p "op=>"
  59. if %op%==Y goto lock
  60. if %op%==y goto lock
  61. if %op%==n goto End
  62. if %op%==N goto End
  63. echo Invalid opice
  64. goto hide
  65. :lock
  66. ren Backup "File lock_key"
  67. attrib +h +s "File lock_key"
  68. echo Your folder is locked, but remember to keep your lock_key on an external disk
  69. echo Don't leave lock_key on computer, someone can read your password from this script!
  70. goto End
  71. :unlock
  72. echo Enter your password
  73. set/p "pass=>"
  74. if NOT %pass%== betterinstalllinux goto wrongpass
  75. attrib -h -s "File lock_key"
  76. ren "File lock_key" Backup
  77. echo Now your folder is public!
  78. goto End
  79. :wrongpass
  80. echo Invalid password
  81. goto End
  82. :madefolder
  83. echo You don't have backup folder
  84. md Backup
  85. echo Backup folder created successfully
  86. goto End
  87. :End
  88. pause
  89. goto start
  90. :option3
  91. cls
  92. echo Upload backup folder to ftp server
  93. echo Enter source to files or folder to backup, if u wanna upload every files use it ,,C:\Backup\*''
  94. set/p "sour=>"
  95. echo open files.000webhost.com> c:\upload.txt
  96. echo testskryptcmd>> c:\upload.txt
  97. echo 12345678>> c:\upload.txt
  98. echo binary>> c:\upload.txt
  99. echo mput %sour%>> c:\upload.txt
  100. echo quit>> c:\upload.txt
  101. ftp -i -s:c:\upload.txt
  102. del c:\upload.txt
  103. pause
  104. goto start
  105. :option4
  106. cls
  107. echo Download backup folder from ftp server
  108. echo Enter destination to download files, if not exist script will create it
  109. set/p "des=>"
  110.  
  111. if exist %des% goto download
  112. if exist not %des% goto create
  113. :create
  114. mkdir %des%
  115. echo.
  116. echo %des% folder created
  117. echo.
  118.  
  119. :download
  120.  
  121. echo open files.000webhost.com> c:\download.txt
  122. echo testskryptcmd>> c:\download.txt
  123. echo 12345678>> c:\download.txt
  124. echo binary>> c:\download.txt
  125. echo lcd %des%>> c:\download.txt
  126. echo mget />> c:\download.txt
  127. echo quit>> c:\download.txt
  128. ftp -i -s:c:\download.txt
  129. del c:\download.txt
  130.  
  131. pause
  132. goto start
  133. :wrong
  134. echo Wrong number, please try again
  135. pause
  136. goto start
  137. :option5
  138. set path="C:\Program Files\WinRAR\";%path%
  139. echo Rar or unrar files
  140. echo Make sure you have installed winrar here "C:\Program Files\WinRAR\"
  141. echo To Rar press 1, to Unrar press 2
  142. set/p "op=>"
  143. if %op%==1 goto rar
  144. if %op%==2 goto unrar
  145. goto start
  146. :rar
  147. echo Enter path to save rar
  148. set/p "sour=>"
  149. cd %sour%
  150. echo Enter name of
  151. set/p "name=>"
  152. echo Enter path to folder to rar
  153. set/p "des%=>"
  154. rar a -r %name%.rar %des%
  155. echo rar created
  156. pause
  157. goto start
  158. :unrar
  159. echo Enter path to rar
  160. set/p "sour=>"
  161. cd %sour%
  162. echo Enter path to folder to unrar if not exist script will create it
  163. set/p "des%=>"
  164. if exist %des% goto dounrar
  165. if exist not %des% goto create
  166. :create
  167. mkdir %des%
  168. echo.
  169. echo %des% folder created
  170. echo.
  171. goto dounrar
  172. :dounrar
  173. unrar x %sour%.rar %des%
  174. echo unrar completed
  175. pause
  176. goto start
  177. :option6
  178. echo Enter name of file to search
  179. set/p "name=>"
  180. echo Enter path to search
  181. set/p "path=>"
  182. cd %path%
  183. dir /b/s %name%
  184. pause
  185. goto start
  186.  
  187. :option7
  188. @echo off
  189. setlocal ENABLEDELAYEDEXPANSION
  190. set "volume=C:"
  191. set operatingsystem=
  192. set producer=
  193. set model=
  194. set serial=
  195. set systemname=
  196. FOR /F "tokens=2-4 delims=''='" %%x in ('wmic os get Name /value') do SET systemname=%%x
  197. FOR /F "tokens=2-4 delims=''='" %%x in ('wmic ComputerSystem Get Manufacturer /value') do SET producer=%%x
  198. FOR /F "tokens=1-2 delims=''|'" %%x in ("%systemname%") do SET systemname=%%x
  199. FOR /F "tokens=1*delims=:" %%i IN ('fsutil volume diskfree %volume%') DO (
  200. SET "diskfree=!totalspace!"
  201. SET "totalspace=!availablespace!"
  202. SET "availablespace=%%j"
  203. )
  204. FOR /F "tokens=1,2" %%i IN ("%totalspace% %availablespace%") DO SET "totalspace=%%i"& SET "availablespace=%%j"
  205. FOR /F "tokens=2-4 delims=''='" %%x in ('wmic Bios Get SerialNumber /value') do SET serial=%%x
  206. FOR /F "tokens=2-4 delims=''='" %%x in ('wmic OS Get csname /value') do SET operatingsystem=%%x
  207. FOR /F "tokens=2-4 delims=''='" %%x in ('wmic ComputerSystem Get Model /value') do SET model=%%x
  208.  
  209.  
  210. echo --------------------------------------------
  211. echo System Name: %operatingsystem%
  212. echo Producer: %producer%
  213. echo Model: %model%
  214. echo Serial: %serial%
  215. echo Operating System Name: %systemname%
  216. echo C:\ Total Space: %totalspace:~0,-9% GB
  217. echo C:\ Avail Space: %availablespace:~0,-9% GB
  218. echo Processor: %processor_architecture%
  219. echo --------------------------------------------
  220.  
  221. SET info="info.txt"
  222. echo -------------------------------------------- >> %info%
  223. echo User System Name: %operatingsystem% >> %info%
  224. echo Producer: %producer% >> %info%
  225. echo Model: %model% >> %info%
  226. echo Serial: %serial% >> %info%
  227. echo Operating System Name: %systemname% >> %info%
  228. echo C:\ Total Space: %totalspace:~0,-9% GB >> %info%
  229. echo C:\ Avail Space: %availablespace:~0,-9% GB >> %info%
  230. echo Processor: %processor_architecture% >> %info%
  231. echo -------------------------------------------- >> %info%
  232. pause
  233. goto start
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top