home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 October / PCWorld_2006-10_cd.bin / zabezpeceni / avdisk / avdisk92e.exe / DATA.ZIP / DISKIMG.ZIP / DISKIMG.IMG / AUTOEXEC.BAT next >
DOS Batch File  |  2004-09-23  |  1KB  |  47 lines

  1. @echo off
  2.  
  3. set path=a:\fdos;a:\avdisk
  4.  
  5. keyb us,,a:\fdos\us.kl
  6.  
  7. srchtdsk
  8. set SData=26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15 O 14 N
  9. call a:\avdisk\search.bat AVDisk %SData%
  10. if not %RAMDrive%*==* goto start
  11. set SData=13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C 2 B 1 A
  12. call a:\avdisk\search.bat AVDisk %SData%
  13. if not %RAMDrive%*==* goto start
  14.  
  15. :manual
  16. echo.
  17. echo RAMDrive auto-detection failed:
  18. echo Please type the drive letter of the RAMDrive...
  19. choice /c:ABCDEFGHIJKLMNOPQRSTUVWXYZ /n >nul
  20. set SData=26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15 O 14 N
  21. call a:\avdisk\search.bat AVDisk %SData%
  22. if not %RAMDrive%*==* goto confirm
  23. Set SData=13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C 2 B 1 A
  24. call a:\avdisk\search.bat AVDisk %SData%
  25.  
  26. :confirm
  27. echo Please confirm that the RAMDrive is volume %RAMDrive% (Y/N)
  28. choice /c:YN /n >nul
  29. if ErrorLevel 2 goto manual
  30.  
  31. :start
  32. set SData=
  33. cls
  34. echo Loading AV software
  35. echo =================== 
  36. if %RAMDrive%*==* goto fail
  37. copy a:\avdisk\copyinfo.bat %RAMDrive%\ /y >nul
  38. %RAMDrive%
  39. cd\
  40. copyinfo.bat AVDisk
  41.  
  42. :fail
  43. echo Error - Could not succesfully create RAM drive
  44. pause
  45. set RAMDrive=
  46. cls
  47.