I just checked out https://stackoverflow.com/a/212960/ which was very useful and worked great on Windows XP. But using Windows 7 it does not work for some unclear reason.
The PATH variable looks like this:
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\
It obviously contains \, as well as the semicolons that I use to separate in the package that contains this FOR loop:
FOR /F "delims=;" %%A IN ("%PATH%") DO ( echo %%A )
Execution does not cause an error, but provides only one (first) token
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
I had no idea why FOR completes and plays with several options that were offered on the network, but no one did the job.
Any help would be greatly appreciated.
Christian
Christian
source share