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