![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Script to hide a variable folder 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 |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Script to hide a variable folder "Crx" <Crx@xxxxxx> wrote in message news:20C7D6B9-DE8B-4610-97AA-4F54F8C584D5@xxxxxx Quote: >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 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 |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Script to hide a variable folder Joe, Yea, I know about attrib using a bat file, I was hoping I can get the same thing done using a vb script. It sounds like an easy task; well maybe not. -CX "Joe Fawcett" wrote: Quote: > "Crx" <Crx@xxxxxx> wrote in message > news:20C7D6B9-DE8B-4610-97AA-4F54F8C584D5@xxxxxx Quote: > >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 > > 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 > > > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Script to hide a variable folder Documentation on the attributes property of the FileSystemObject: http://msdn.microsoft.com/en-us/libr...43(VS.85).aspx -- Joe Fawcett (MVP - XML) http://joe.fawcett.name "Crx" <Crx@xxxxxx> wrote in message news:4ECDC43F-60C2-4474-80BF-1C8A88D40C45@xxxxxx Quote: > Joe, > > Yea, I know about attrib using a bat file, I was hoping I can get the same > thing done using a vb script. It sounds like an easy task; well maybe not. > > -CX > > "Joe Fawcett" wrote: > Quote: >> "Crx" <Crx@xxxxxx> wrote in message >> news:20C7D6B9-DE8B-4610-97AA-4F54F8C584D5@xxxxxx Quote: >> >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 >> >> 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 >> >> >> |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Script switch parameter as variable | PowerShell | |||
| creating Environment variable during logon script | VB Script | |||
| return variable through script in script | VB Script | |||
| Hide CMD prompt on HTA Script | VB Script | |||
| Current script special variable | PowerShell | |||