Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

mapping with a batch

Original Message
Name: quarinteen
Date: September 5, 2007 at 13:19:04 Pacific
Subject: mapping with a batch
OS: xp
CPU/Ram: na
Model/Manufacturer: none
Comment:
I need to map a drive off of a registry value on a local machine.

I want to use this batch in more than one location. Our servers all have different names. The good thing is that the server name is written into the registry on the local machines. How do I read that reg key and map a drive from it.
Thanks


Report Offensive Message For Removal


Response Number 1
Name: Razor2.3
Date: September 5, 2007 at 18:03:30 Pacific
Subject: mapping with a batch
Reply: (edit)
for /f "tokens=2* usebackq" %%a in (`reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" /v MediaPath`) do IF NOT (%%b)==() set something=%%b

Report Offensive Follow Up For Removal

Response Number 2
Name: quarinteen
Date: September 5, 2007 at 18:12:58 Pacific
Subject: mapping with a batch
Reply: (edit)
Thanks. I dont understand it yet but thanks.


Report Offensive Follow Up For Removal

Response Number 3
Name: Razor2.3
Date: September 5, 2007 at 18:39:29 Pacific
Subject: mapping with a batch
Reply: (edit)
for /?
reg query /?

Or ask a question.


Report Offensive Follow Up For Removal

Response Number 4
Name: quarinteen
Date: September 6, 2007 at 06:11:22 Pacific
Subject: mapping with a batch
Reply: (edit)
I just dont understand all the windows scripting stuff all that well but since you gave me the comands I can look them up and find out what they mean....

Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: mapping with a batch

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




Slow boot time

Trasnferring Documents from old HD

My k8T Neo-v usb's aren't working!

Date Modified = Date Created Time

system files on removable harddrive


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC