ZTree.com  | ZEN  | About...  

 Index   Back

[Q] F9 Menu Script Assistance   [Q]

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

That would seem to indicate you don't have a file tagged when you run it...

> 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

69 views      
 

Messages in this Thread

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