Re: Apologies if incorrect group - Mapped drive rename from batch error
- From: "Pegasus \(MVP\)" <I.can@xxxxxxxxxx>
- Date: Thu, 31 Jan 2008 21:28:35 +0100
"Bob I" <birelan@xxxxxxxxx> wrote in message
news:eQ000HEZIHA.984@xxxxxxxxxxxxxxxxxxxxxxx
R-click the drive letter in My Computer and pick "Rename". Call it
whatever you want.
So it does! Applying this newly learnt piece of info, I knocked
together this batch file which makes sense AND works. You
need to change lines 2 and 3 to suit your requirements.
@echo off
echo >"%temp%\ren.vbs" drive = "Q:"
echo >>"%temp%\ren.vbs" NewName = "Shared Drive 2"
echo >>"%temp%\ren.vbs" Set oShell = CreateObject("Shell.Application")
echo >>"%temp%\ren.vbs" oShell.NameSpace("Q:").Self.Name = NewName
cscript //nologo "%temp%\ren.vbs"
.
- References:
- Apologies if incorrect group - Mapped drive rename from batch error
- From: Richhall
- Re: Apologies if incorrect group - Mapped drive rename from batch error
- From: Pegasus \(MVP\)
- Re: Apologies if incorrect group - Mapped drive rename from batch error
- From: Richhall
- Re: Apologies if incorrect group - Mapped drive rename from batch error
- From: Bob I
- Re: Apologies if incorrect group - Mapped drive rename from batch error
- From: Richhall
- Re: Apologies if incorrect group - Mapped drive rename from batch error
- From: Bob I
- Apologies if incorrect group - Mapped drive rename from batch error
- Prev by Date: Re: Using Backup utility
- Next by Date: Re: Windows XP Shortcut
- Previous by thread: Re: Apologies if incorrect group - Mapped drive rename from batch error
- Next by thread: Re: Apologies if incorrect group - Mapped drive rename from batch error
- Index(es):
Relevant Pages
|
|