Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - How to remove function: items at startup

Reply
 
Old 03-31-2009   #1 (permalink)
George


 
 

How to remove function: items at startup

Since some set-location functions such as A: B: do no apply to my computer
(which has no floppy disk drive), is there any way to remove them so that
they are not loaded at startup?

My System SpecsSystem Spec
Old 03-31-2009   #2 (permalink)
Josh Einstein


 
 

Re: How to remove function: items at startup

You can just do:
del function:\B:

Josh

"George" <George@xxxxxx> wrote in message
news:5F50D7D4-59C8-4B66-8B61-0D220066B549@xxxxxx
Quote:

> Since some set-location functions such as A: B: do no apply to my computer
> (which has no floppy disk drive), is there any way to remove them so that
> they are not loaded at startup?
My System SpecsSystem Spec
Old 04-01-2009   #3 (permalink)
Al Dunbar


 
 

Re: How to remove function: items at startup


"Josh Einstein" <josheinstein@xxxxxx> wrote in message
news:50057CF3-8681-4BE8-BC6E-C7BDFE51685A@xxxxxx
Quote:

> You can just do:
> del function:\B:
That unloads them rather than causing them to not be loaded.

I tried it and this works, however, one can still type the B: command and
recieve an error message. But somehow, I find this standard error message:

Set-Location : Cannot find drive. A drive with name 'B' does not exist.
At line:1 char:13
+ Set-Location <<<< B:

to be more useful than the one displayed after deleting the function:

The term 'B:' is not recognized as a cmdlet, function, operable program,
or script file. Verify the term and try again.
At line:1 char:2
+ B: <<<<

I suppose one could define their own error message with a custom function
like:

function B: {"there is no drive B: on this system"}

But then if the user mapped a share to B: he'd be unable to make it the
default folder.

/Al
Quote:

> Josh
>
> "George" <George@xxxxxx> wrote in message
> news:5F50D7D4-59C8-4B66-8B61-0D220066B549@xxxxxx
Quote:

>> Since some set-location functions such as A: B: do no apply to my
>> computer
>> (which has no floppy disk drive), is there any way to remove them so that
>> they are not loaded at startup?
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to remove recognize/remove items under "Services" tag in SYSTEM CONFIG window? General Discussion
Remove items from ArrayList .NET General
Cannot get rid of startup items Vista General
remove items from windows startup Vista General
Startup items Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46