ZTree.com  | ZEN  | About...  

 Index   Back

[Q] F9 Menu Script Assistance   [Q]

By: Dan LeGate       
Date: Aug 20,2022 at 05:23
In Response to: [Q] F9 Menu Script Assistance (Dan LeGate)

And... I should have looked closer.

It finally RAN but didn't loop through the tagged Zip files. It only acted on the currently highlighted file which wasn't tagged, and ignored the tagged files.

I thought that was the whole point of using the ZTTagged=True

I obviously don't get how this is supposed to work. I guess "detect the presence of tagged files" isn't the same as act on these tagged files when run. Not sure what the value of that is.

Looks like maybe I need to write out a file to process with ZTTag and then run my commands?

> LOL... figured it out.
>
> Because of the example in the documentation, I thought (weirdly) that I
> needed to include REM in front of the commands for F9 for whatever
> reason... well, if it's literally just the DOS command to REMark
> (comment) obviously I'll remove them, and BAM! Works fine.
>
> Silly me, taking things too literally: "Oh! That must be some sort of
> special F9 way to run DOS commands!" haha
>
> Thanks for offering to help me debug!
>
> Dan
>
> > Odd. I’ll try and set up a test here over the weekend and se what
> > I get…
> >
> > > And yet... I do! (scratches head)
> > >
> > > > 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
> > > > >

81 views      
 

Messages in this Thread

 
95,961 Postings in 12,120 Threads, 350 registered users, 53 users online (0 registered, 53 guests)
Index | Admin contact |   Forum Time: Sep 26, 2022 - 10:37 am UTC  |  Hits:50,904,881  (9,669 Today )
RSS Feed