> I am having trouble running a F9 script in Win7 that href=http://www.ztw3.com/forum/forum_entry.php?id=107443>used to run
> perfectly in WinXP. Apparently Explorer has changed in Win7, and
> so have its associated command-line switches. I can't find any
> documentation anywhere on the internet of what the new syntax is.
>
> SET ZTMode=File
> REM #ZTIfDir SET ZTMode=Dir
> IF [%%ZTMode%%]==[Dir] START "" Explorer /e,, %2:%3
> IF [%%ZTMode%%]==[File] START "" Explorer /e,, %2:%3, /select, %4.%5
>
> Anyone have any idea how to modify this script to run properly in ZTW64
> v2.4.157, running under Win7 Enterprise SP1?
>
> Thanks in advance.
Doug
I think /e is no longer supported, and the other switches may have changed a bit.
Try this
SET ZTMode=File
REM #ZTIfDir SET ZTMode=Dir
IF [%%ZTMode%%]==[Dir] START "" Explorer %2:%3
IF [%%ZTMode%%]==[File] START "" Explorer %1,/select
You can also do this
Explorer /root,%2:%3
Ben