I want to toggle a directory with the attribute -h
& +h
accordingly.
When I use this command sequence the output is
\directory was unexpected at the time.
Any ideas on how to get this working?
:toggle
if attrib \directory /s /d equ -h goto hidedir
if attrib \directory /s /d equ +h goto showdir
pause
goto start
:showdir
attrib -r -s -h \directory /s /d
goto start
:hidedir
attrib +r +s +h \directory /s /d
goto start