home *** CD-ROM | disk | FTP | other *** search
/ The Complete Interactive Cookbook / L1_JS_101199.ISO / signup / DUN / chkdun.bat next >
DOS Batch File  |  1999-11-05  |  596b  |  24 lines

  1. @echo off
  2. set userprof="%USERPROFILE%"
  3.  
  4. REM 95
  5. set filename1=%windir%\start menu\programs\accessories\dial-up networking.lnk
  6. REM 98
  7. set filename2=%windir%\start menu\programs\accessories\communications\dial-up networking.lnk
  8. REM NT
  9. set filename3=%userprof%\start menu\programs\accessories\dial-up networking.lnk
  10.  
  11. :checkfile
  12. if exist "%filename1%" goto lab2
  13. if exist "%filename2%" goto lab2
  14. if exist "%filename3%" goto lab2
  15. :lab1
  16.         REM File not found.
  17.         notepad dun.txt
  18.         goto end
  19. :lab2
  20.         REM File found.
  21.         notepad my.txt
  22.         goto end
  23. :end
  24.