ZTree.com  | ZEN  | About...  

 Index   Back

[Q] F9 Menu Script Assistance   [Q]

By: Dan LeGate       
Date: Aug 19,2022 at 16:32
In Response to: [Q] F9 Menu Script Assistance (GoSlow2GoFast)

Thanks! I missed that!

So I added the GOTO statement, but it still goes to the "requires tagged files" statement.

Is there something wrong with the way I'm setting up the Tagged file condition?

Here's the full (updated) script:

SET ZTTagged=False
REM #ZTIfTagged SET ZTTagged=True
IF [%%ZTTagged%%]==[False] GOTO Err_NoTag
REM mkdir %4
REM C:\Users\dx7668\Documents\ztw\pkzipc.exe -extract %1 .\%4
GOTO End
:Err_NoTag
ECHO This menu item requires tagged files to operate
Pause
:End
Pause


Pause at the end is temporary so I can see the output for now.

Thanks!

> It looks like there are two possibilities. If you don't have a file
> tagged then it will produce that message. In addition, even if there is
> a file tagged, there is no GOTO before the :Err_NoTag label, so the
> script will execute the lines:
>
> REM mkdir %4
> REM C:\Users\dx7668\Documents\ztw\pkzipc.exe -extract %1
> .\%4
>
> And then proceed down to the display message you are seeing. You
> probably want to add the GOTO like below, depending on what you are
> trying to accomplish.
>
> SET ZTTagged=False
> REM #ZTIfTagged SET ZTTagged=True
> IF [%%ZTTagged%%]==[False] GOTO Err_NoTag
> REM mkdir %4
> REM C:\Users\dx7668\Documents\ztw\pkzipc.exe -extract %1 .\%4
> GOTO End
> :Err_NoTag
> ECHO This menu item requires tagged files to operate
> Pause
> :End

86 views      
 

Messages in this Thread

 
95,961 Postings in 12,120 Threads, 350 registered users, 48 users online (1 registered, 47 guests)
Index | Admin contact |   Forum Time: Sep 26, 2022 - 9:57 am UTC  |  Hits:50,904,349  (9,137 Today )
RSS Feed