Advertisement
tolikpunkoff

win7install.bat

Feb 16th, 2019
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.35 KB | None | 0 0
  1. @echo off
  2. echo Set variables...
  3. SET NETADDR=\\PXE\win7                                                          
  4. SET NETDRIVE=Z
  5.  
  6. echo Checking setup.exe...
  7. if exist %NETDRIVE%:\sources\setup.exe goto INSTALL
  8.  
  9. echo Mount share...
  10. net use %NETDRIVE%: %NETADDR%
  11. sleep 5
  12.  
  13. :INSTALL
  14. echo Launch setup...
  15. sleep 3
  16. %NETDRIVE%:
  17. cd \sources
  18. setup.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement