ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] F9 script and Explorer.exe in Win7   [Help!]

By: Ben Kent       
Date: Mar 16,2015 at 10:14
In Response to: [Help!] F9 script and Explorer.exe in Win7 (Doug Borg)

> 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

789 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 82 users online (0 registered, 82 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 11:03 am UTC  |  Hits:62,402,782  (17,568 Today )
RSS Feed