Find external hard drives letter by name of disks in the file of DOS commands

I have been using the following code to some of my backup files, but I have to make sure that the player that I am backup is in the correct position (drive letter) before running the code otherwise the data is copied to a disc is actually in E: (planned as the code)

I would like to improve the feature codes so it will not matter howmany disks are connected to my computer (specifically wich order drives were connected) when I run the batch file I want files saved to any reader is called "BarrysBackupDrive" or whatever I choose. and if the drive is not found not found 'BarrysBackupDrive' echo and await confirmation then quit

Here is my current code

off @echo
: variables defined by car in the location you want to save on
Set drive = E:\MyBackups

Set backupcmd = xcopy /s /c /d/e/h/i/r/y

echo # back up My Documents to %Drive%...
% backupcmd % "C:\Documents and c Documents" "%drive%\My Documents".
@pause

Echo Backup complete!
@pause

How to specify the backup disk by name? no letter... or get the drive letter as a variable.

Thank you

Barry

Hello
 
Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.
Please ask your question on the TechNet - forum official Scripting Guys.
Here is the link:
I hope this helps.

Thank you, and in what concerns:
Shekhar S - Microsoft technical support.

Visit our Microsoft answers feedback Forum and let us know what you think.
If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Tags: Windows

Similar Questions

  • I try to use my Time Capsule as external hard drive. But when I look in the Finder, nothing is available for shared devices.

    I have a Macbook air running OS X El Capitan. I try to use my Time Capsule as external hard drive. But when I look in the Finder, nothing is available for shared devices. I don't know if I need to restart the time Capsule or change the wireless setting, etc. ?

    Please advise...

    The TC appears in airport utility? If not then it is probably not part of your network or is lost... upgrade installed you El Capo because there a lot of questions.

    What is the TC plugged into the network by ethernet? And configured properly? Are you to internet via the TC... but can not see his drive... that would be typical?

    Have you set Finder preferences to display the network drives? Apple keeps making it difficult for some unknown reason.

    You actually have to mount the drive TC if it appears under shared... it still may not appear if you double click on it. Under the search box on the top of the right hand you see Connect (As) box, type the name or IP address of the TC in there... Make sure that you save the password from your keychain.

    I try to use my Time Capsule as external hard drive

    For the storage of the files it is fine.

    For the execution of direct files for an application in the Mac, you are very likely to damage or corrupt the file at some point.

    And how do you do backups? Time Machine can't help you... it won't work.

    Backup is crucial, especially if you do things apple say not to do... That is to say move your photos or the iphoto library to the TC and try to use direct from there... expect any day to need a resumption of the library.

  • How can I remove restrictions file from an external hard drive so I can view or access these files on any computer instead of just one file has first been created?

    I have an external hard drive that I loaded all my important files on all my computers. There is a file that I put in place restrictions to access, but it has been so long that I don't know how I did it or how to remove it. How can I remove restrictions file from an external hard drive so I can view or access these files on any computer instead of just one file has first been created? The computer that I created the folder of running Windows Vista. I am not able to access files in this folder from any other computer. It gives me the following error: "E:\School is not accessible. Access is denied. »

    Hi mango127,

    I suggest that you give all permissions for everyone on this folder and check if it works.

    "Access denied" error message when you try to open a folder

    http://support.Microsoft.com/kb/810881

    How to capture a file or a folder in Windows XP

    http://support.Microsoft.com/kb/308421

    If the previous step fails then I would suggest that you take the backup of this folder on the computer you were accessing and later to format the hard drive.

    How to use disk management to configure basic disks in Windows XP

    http://support.Microsoft.com/kb/309000

  • Sharing of readers do not reconnect - error "an error occurred during connection [drive letter]: [share name] Microsoft Windows network: the local device name is already in use." This connection has not been restored. »

    Original title: Shared readers do not reconnect

    I have two PCs connected wireless. A laptop (Vista Business) was the drives mapped to actions on the other PC (XP). Whenever the Vista PC is started or out of hibernation, or after only a short period of time these discs are not available. Click on the drive in Explorer to display the message "an error occurred during connection [drive letter]: [share name] Microsoft Windows network: the local device name is already in use." This connection has not been restored. »

    If I click on 'Network' within Solution Explorer, the XP PC is not visible. The only way that I can "reconnect" these disks is to go into my anti-virus (Trend) and open the network map. This shows the XP PC and then the shares are available through Explorer - XP PC is still not visible by clicking network however.

    It started only happens in the last two months - cannot locate exactly when, but quite recently. I use connections to store small files and backup critical files a few before nailing the laptop away and it is quite annoying to have to go through this routine every time.

    Any ideas?

    Just in case it helps others - I found that if I make sure that my XP PC has a fixed IP address, and then set up the shares so that they are defined using the IP address and not share names, then I do have more problems - seems like it's something to do with Windows solve the share names rather than something to do with the personal firewall after all.

  • I'm low in disk space on C: drive I can use my external hard drive of 500 GB to fill in the space

    Toshiba L40 series

    Toshiba L40 series

    That's what I do with my external hard drive.
    I propose all programs installed , personal files and folders on my external hard drive. Thus, only the programs in the system are in the C drive.

    My C drive has 581 GB, so far only 50 of them are used. (Mine is a Win 7 64-bit).

  • Windows 7 reassigned by external hard drive letters and PE8 do not accept the new letter

    Sometimes when I move my external hard drives around, Windows will eventually assign different letters for the readers. It seems that all the other programs I use understand how to switch to the new drives when looking for files, but PE8 doesn't. He asked me where the N:files/video/movie.prel file is located. When I find the file in O:files/video/movie.prel. Click on enter the PE8 returns with one does not find the file error and asks us to locate it again. I reinstalled PE8 in the past to deal with the problem, but is there something easier to do.

    The trick is to tell Windows to permanently assign a drive letter to this drive so that it will not assume that this is a new drive, every time you turn it on.

    This discussion to Muvipix.com tells you how.

  • Windows is not to find external hard drives, etc.

    Something screwed my PC Windows 7 big time.  It does not recognize one of the four external hard drives USB.  (He did recognize a USB flash drive).  I inserted the original installation CD Windows Home Premium 64 bit.  It does not recognize either.

    I reconnected the hard drive to a USB port and open devices and printers.  The disk was shown, but had the icon of the troubleshooter.  I ran the store.  Firstly, he said that the problem had been solved and that the device was working properly.  When I right click the drive icon, I finally got an error message stating that the driver has not been installed successfully.  (Odddly, the icon of the printer has been replaced by a generic icon, if the printer is working.)

    I don't know if I have a problem Windows or hardware.

    I know I could run the system restore.  I could use Dariks Boot and Nuke to wipe the drive and start again.

    Can someone advise me?

    Hello

    Your CD-ROM or DVD drive is not recognized by Windows or other programs

    http://support.Microsoft.com/kb/314060/en-us

    Unplug all devices – speakers, printer, etc...

    Now plug the drive hard - is it recognized?

    Step 1: Try to run Automated Troubleshooting Services and check out what he has to say.
    Reference: http://support.microsoft.com/gp/hardware_device_problems

    Step 2: You can also check in the device if Manager disk external drive is listed.

    a. connect the external hard drive to the computer.
    b. to open Device Manager, type devmgmt.msc in the search box start and press ENTER.
    c. check if the external drive is listed.
    d. in Device Manager, expand the hard drive listed in the list of devices.
    e. If the hard disk is listed, right click on it > click Properties.
    (f) in general, under control of device for the message status. After back if there is no error message.
    Step 3: Check to see if the external drive is getting detected in disk management.

    If the hard drive recognized in disk management and if there is no drive letter assigned, I suggest that you right-click on the drive and assign a drive letter and check to see if it helps:
    Step 4: Since external hard drive is detected earlier, I suggest that you try to perform system restore.
    Reference: http://windows.microsoft.com/en-US/windows7/products/features/system-restore
     

    Step 5: Remove and reinstall all USB controllers.

    To remove and reinstall all USB controllers, follow these steps:

    a. clickStart, click run, type sysdm.cpl in theOpen box and then click OK.

    b. click on thehardware tab.

    c. click theDevice Manager button.

    d. expandBus USB controllers.

    e. right click on each device under theBus USB controllers node and then click Uninstall to remove them one at a time.

    f. restart the computer and reinstall the USB controllers. Restarting the computer should automatically install the drivers.

    g. plug in the removable USB storage device and perform a test to ensure that the problem is solved.


    Step 6: Install the windows updates and check.

    http://Windows.Microsoft.com/en-us/Windows7/install-Windows-updates


    Step 7: Install the latest chipset driver. For this I recommend you contact the manufacturer of the system.

  • LR 5.7 cannot find my files already edited because I accidentally deleted them. I have original and exported raw files edited JPEG images on an external hard drive. How do return on LR the possibility to repeat already published photos complete with the p

    LR 5.7 cannot find my files already edited because I accidentally deleted them. I have original and exported raw files edited JPEG images on an external hard drive. How to get back on LR the possibility to repeat already published photos complete with a history of editing? Thank you.

    Thank you Joe Maniac.  I deleted the original linked files on my internal hard drive which were dng files, but had copies of the raw files edited and edited the exported raw files (in JPEG format).  I don't have copies of dng files.  So what I ended up having to do was import the original raw files which then made a DNG copy on my internal hard drive.  The link has not changed, but now the files were back in the original track for missing photo alerts disappeared and I was able to see my change history.  The process has been painful, but without the dng, I had nothing to do a link to more if at least re-import them files has recreated the dng.  I don't know if there was an easier way, but it seemed that the problem did not the link deletion.  I use LR for a few years, but it was a rookie mistake, precipitated by my hard drive being so jammed up I ended up delete what I shouldn't.  I should have just moved the dng and the link to an external hard drive. Thanks again.

  • Cannot find external hard drives - Windows XP Media Center

    I just got a new external HDD two days ago in the case where my old drive never fails. I have connected both to my laptop and copy all my old files from the old drive to the new. Yesterday, I clicked on 'Stop' under 'Remove hardware safely', and both readers suddenly stopped being recognized by my computer. When I plug in, they light up and run, but their records are not displayed in my computer. I don't get any error message (or any kind of message), but they always show upward under Device Manager. I tried to move the USB cables, restarted my computer, update device drivers, do a system restore and run a virus scan (some files on my drive C: disappeared recently, however, the scanner found nothing). I also tried to attach external hard drives to other computers, but they are still not recognized. Please help - I have files that cannot be replaced and the new cost of drive hard $100, and I don't want to go through the hassle of trying to get a replacement without warranty or invoice.

    Hard drives not recognized in all other computers as well? There lies the problem.

    Try to connect to some other computers (XP, Vista or 7) and see if the problem repeats.

    If so, your disks are dead (because no computers detect them).

    Download and run the utility to diagnoses of the Web site of the manufacturer of the hard disk to check for disk errors.

  • How can I install Thunderbird on an external hard drive, ensure that all emails are on the external hard drive? Can I direct emails to an external hard drive to my PC?

    I want my emails on my external hard drive. How to go there directly? Thank you.

    Go to the Thunderbird profile folder.
    -Open the Explorer, type %appdata%\microsoft\windows\sendto in the address bar and press ENTER.
    -You will find a folder named Thunderbird. Open it.
    Copy/move the subfolder of the profiles to your address file
    -Open the profiles.ini
    -Change IsRelative 0
    -Change of path to something like this: K:\Thunderbird 3\Profiles\b8p1vx2s.default (with the new path of your profile folder)

  • Updated the motherboard, processor and RAM and upgraded to Windows 7 Ultimate 64 bit, after upgrade the external hard drive encrypted with bitlocker will not enter the password.

    Original title: bitllocker Windows 7 issue

    Hello

    I recently updated my motherboard, processor and RAM, but I kept my original 500 GB hard drive, and equipped with a hard drive 2 TB extra, after the upgrade, I downloaded windows 7 ultimate 64-bit. After the upgrade I plugged my external hard drive (which has all my stuff important on it, that is to say the photo, video etc.) to realize that I had he encrypted with bitlocker on my old sysem. It allows Me to enter my password, it looks for a USB flash drive key, I did not. My question is:

    Can I replace my old system with the old motherboard, hard drive and the original RAM to remove the external hard drive for bitlocker?

    I still have the file windows.old on my hard drive, I have to restore it and remove the most recent version of windows 7 off the drive. I do this before I rebuild my old PC? I'm stuck here and would not lose all my photos (the wife would kill me!) I would appreciate your help.

    Hello

    Reassembly of the old computer won't help. You will always need the key to open the Bitlocker.

    You can read the articles and check:

    What is the difference between BitLocker Drive encryption and EFS file system?

    Protect your files using BitLocker Drive encryption

    In Windows 7 BitLocker Drive Encryption: frequently asked Questions

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

  • Windows 7 recognizes the external hard drive, but I can't open to view files.

    I have a portable Seagate external hard drive that I have connected to my Windows 7 pc.  The computer recognizes the drive when I go to Control Panel-Hardware and Sound-devices & Printers (it happens that the laptop).  I can't see the drive when I go to the Start Menu of the computer.  He was to drive L while it was working properly.  I checked the driver and tried to update the driver, but when I do it says that the latest version of the driver is already installed.  I tried to use the troubleshooter, but it does not recognize the problem.  I searched the web for solutions, but were unable to find answers.  Help, please.

    Is there a stand-alone of Seatools?  I think I'd get ahold of stand alone drive Diagnostics and run them.  If you moved this player so he was reading or writing, it could have caused a head collision since the read/write heads are a tiny fraction of an inch of the surface of the disc.  And then sometimes they just wear out like what either with coins set in motion.  They are usually less than a year, but it happens sometimes.  I would check to see if it is still under warranty.  If so, maybe Seagate could help you.

    Good luck.

  • external hard drive not in management of disks and in my computer. Hard drive is not grateful. Hot to get the content

    Hi, I am trying to connect my external hard drive, but it is not visible in my computer or disk management. But the disk is running, can you please let me know how to make visible and removes the content. Thank you

    If its not visible in disk management, the drive does not work, your way of connecting a player to your PC is defective or if only a usb connection, the usb port does not work (check for brands of yellow warning device manager)

  • I use a PC and I used LR3. I'm a newcomer to LR, so patient with me! My problem is related to the import function. I have a photo library on an external hard drive. I slowly imported previews of the photos selected from the library in

    I use a PC and I used LR3. I'm a newcomer to LR, so patient with me! My problem is related to the import function.

    I have a photo library on an external hard drive. I've slowly been import previews of the photos selected from the library in my catalog, adding them during the import process - well. But now, I hit a problem. Another folder in my library contains several subfolders, each containing a number of photos (a mixture of RAW steals (naves) and jpg). I was importing found in my catalog each Subfile in turn, using the Add function, usually of the jpgs only from each Subfile. It works fine, until I reached a particular Subfile. For some reason when I try to import from it and select the secondary file as a Source, only the RAW (NEF) images appear in the preview pane (sorry, forgot the correct term for it!). I know that jpg files are in this auxiliary file on the external hard drive, because when I view its content in Windows, they are all there. But try as I can (choose the file under source, select the folder parent as a source, try to copy or move them, instead of adding them), nothing seems to work. Since they do not appear in the preview pane, I can't import them. It does appear that this a Subfile where the problem exists, but I don't see anything that is different from the others (names of files under all use the same structure - yyyy-mm-dd_custom name, and pictures in all subfolders are adopting the same denomination structure too - yyyy-mm-dd_sequential number_custom name.) NAVE/JPG. So what I am doing wrong? Any ideas please.

    It is possible that the images in this particular subfolder were taken in your camera in RAW + JPEG.  If so, you will need to go to preferences under the general tab and make sure the box "processing JPEG files files next to raw as separate photos" is checked.

    However, assuming that this is the case, there is really no reason to import the JPEG file if you already have the RAW file.

  • Is it possible to work on projects iMovie on external hard drives in order to save disk space on my macbook (the internal hard drive has little space)?

    Hello!

    I have a problem working with iMovie on my MacBook Air... Drive HARD internal of the MacBook is unfortunately to small for the biggest projects iMovie... Is there a way to work on external hard drives or perhaps TimeCapsule?

    Thank you very much in advance!

    Yes, put your iMovie library/ies on a fast (7200 RPM) external hard drive to the Apple format is a good way of working.  Details of the setting up of libraries are covered in the help files to:

    http://help.Apple.com/iMovie/Mac/10.1/#/mov3fa25bae7

    Note that you may need to consolidate the media in an existing library before you travel to avoid breaking links to media located in the libraries from other Apple applications.  See:

    http://help.Apple.com/iMovie/Mac/10.1/#/mov882dee351

    I would not recommend using Time Capsule - you would need a separate partition above the used by time machine, and you could put some data on the same drive as backup.  Connection speed can also be a problem.

    Geoff.

Maybe you are looking for

  • Want to go back for Win 7 after the installation of Win 8

    Hello! 2 years ago, I bought a toshiba laptop satellite L series.It came with a win7 64 bit os and a folder HDDRecovery on hard disk, no cd. I have used this cover several times before, no problem with that. Then I bought 8 Win and installed on my co

  • where is my restore partition

    I started my MacBook Air (OS X 10.9) while holding down the Option key and saw that my main drive - na not see the recovery partition. I then restarted with command-R and managed to get on wifi, but I thought it was supposed to be on the local comput

  • datafinder read properties of type 'DataTypeDate' from the script

    Hi all What do I need read "Modify date" value of the property of my Datafinder resultlist? result of: Dim oMyDataFinder, oMyQuery, MyDate, MyMin, oMyResultsSet oMyDataFinder = Navigator.ConnectDataFinder ("My DataFinder")If oMyDataFinder.Name = "My

  • HP Pavilion 15-p264na: upgrade of Windows 10 - recovery disk

    I just bought this laptop with win 8.1 on. I want to upgrade to windows 10 and produce a recovery disk using the installation of HP, which cannot be done at once. The question is what to do first. I'm afraid that if I do first the disc, then I assume

  • AIP SSM - application of physical port

    Hi all I have an ASA5520 with the AIP SSM module. I would like to get a quick check on 2 things. Module AIP-SSM MUST have a physical ethernet port plugged in order for IPS to function? Module AIP-SSM IP address must be on a different IP range like AS