"Crx" <Crx@xxxxxx> wrote in message
news:20C7D6B9-DE8B-4610-97AA-4F54F8C584D5@xxxxxx
>I am new to VB and I need a vb script that does the following:
>
> 1) Check to see that %rootvar%\roam is hidden (%rootvar% is an
> environment
> variable defined prior to this script running)
> 2) If it is not hidden, then alter the attributes to hide it
> 3) If it is hidden, take no action
>
> Any help will be much appriciated
>
> -CX Seems like a fairly straightforward batch script:
ATTRIB +H %rootvar%\roam /D
(Not tested)
Doesn't check whether it's hidden first but I don't see why that matters.
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name