SHARE
TWEET

Untitled

a guest Apr 1st, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. if NOT "%@eval[2+2]"=="4" goto problem
  3.  
  4. echo srodowisko:
  5. ver
  6. echo.
  7.  
  8.  
  9. if "%1"=="h" .or. "%1"=="-h" .or. "%1"=="help" .or. "%1"=="-help" goto help
  10. if %# GT 4 goto help
  11. if "%1" == "-sfn" goto sfn
  12. if "%1" == "-ascii" goto ascii
  13.  
  14. :sfn
  15. if "%@numeric[%2]" == "0" goto help
  16. echo Całkowita krótka ścieżka do pliku:
  17. echo %@SFN[%2]
  18. goto end
  19.  
  20. :ascii
  21. if "%@numeric[%2]" == "0" goto help
  22. echo Całkowita długa ścieżka pliku:
  23. echo %@ASCII[%2]
  24. goto end
  25.  
  26. :help
  27. echo Program sluzy do korzystania z funkcji @SFN, @LFN
  28. echo aby skorzystac z @SFN, prosze uruchomic program z argumentem -sfn
  29. echo aby skorzystac z @LFN, prosze uruchomic program z argumentem -lfn
  30. echo -------------------------------------------------------------------------------
  31. echo @LFN[filename]:  Returns the long filename for a short ("8.3") filename.
  32. echo @lfn[c:\progra~1]
  33. echo C:\Program Files
  34. echo -------------------------------------------------------------------------------
  35. echo @SFN[filename]:  Returns the fully expanded short ("8.3") filename for a long filename.
  36. echo @sfn[%comspec]
  37. echo C:\PROGRA~1\JPSoft\TCMD17~1\TCC.EXE
  38. echo ----------------------------------------------------------
  39. goto end
  40.  
  41. problem
  42. echo Nastepujace srodowisko
  43. ver
  44. echo nie jest obslugiwane przez te makrodyrektywe.
  45.  
  46. :end
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