CMD Ninja – Unlimited Arguments Processing, Identifying If Exist In File-System, Identifying If File Or Directory

@echo off

:loop
      ::-------------------------- has argument ?
      if ["%~1"]==[""] (
        echo done.
        goto end
      )
      ::-------------------------- argument exist ?
      if not exist %~s1 (
        echo not exist
      ) else (
        echo exist
        if exist %~s1\NUL (
          echo is a directory
        ) else (
          echo is a file
        )
      )
      ::--------------------------
      shift
      goto loop
      
      
:end

pause

save it as identifier.cmd
it can identify an unlimited arguments (normally you are limited to %1%9), just remember to wrap the arguments with inverted-commas, or use 8.3 naming, or drag&drop them over (it automatically does either of above).

this allows you to run the following commands:
identifier.cmd c:\windows
and to get

exist
is a directory
done

identifier.cmd "c:\Program Files (x86)\Microsoft Office\OFFICE11\WINWORD.EXE"
and to get

exist
is a file
done

and multiple arguments (of course this is the whole-deal..)
identifier.cmd c:\windows\system32 c:\hiberfil.sys "c:\pagefile.sys" hello-world
and to get

exist
is a directory
exist
is a file
exist
is a file
not exist
done.

naturally it can be a lot more complex,
but nice examples should be simple and minimal.

also posted at StackOverflow:

All MTK Modems + PDAnet, Samsung’s, Google’s Official – ADB USB Drivers

Samsung’s: http://developer.samsung.com/technical-doc/view.do?v=T000000117#none

[42MB]
v3 (newer devices): —
http://downloadcenter.samsung.com/content/SW/201507/20150710153808522/Kies3Setup.exe
http://download.eladkarako.com/resources/Kies3Setup.exe

[75MB]
v1 (older devices):
http://downloadcenter.samsung.com/content/SW/201507/20150730093845516/KiesSetup.exe
http://download.eladkarako.com/resources/KiesSetup.exe


[8.3MB]
Google’s: https://dl-ssl.google.com//android/repository/latest_usb_driver_windows.zip
http://download.eladkarako.com/resources/latest_usb_driver_windows.zip


A collection of MTK-devices (mostly Chinese) and older compatible w/ Samsung, HTC, HTM vendors (x86 and x64).
[23.8MB]

direct-link:
All_MTK_USB_Driver_.9.2+PDanet+Adb_Installer.7z

mirrors:
http://www35.zippyshare.com/v/c6LhTwFR/file.html
http://uppit.com/m82h3a6qpbmv/All_MTK_USB_Driver_.9.2_PDanet_Adb_Installer.7z
http://www.datafilehost.com/d/b377ab13
http://ge.tt/5kcmaIU2
http://www.sendmyway.com/adc91x5vc446
http://hugefiles.net/tgfwhhrg3a0s
http://www.solidfiles.com/d/b0636a4bf0/