1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Batch VSN Checking

Discussion in 'DOS/Other' started by assafm, Jul 20, 2006.

Thread Status:
Not open for further replies.
Advertisement
  1. assafm

    assafm Thread Starter

    Joined:
    Jul 20, 2006
    Messages:
    1
    Hi There,
    I am new in this forum, and hope to get some help with my problem.

    In the company i work, we backup the server data to few external HD.
    Every few days we change the hd and after two weeks, we get back to the first hd and so on... the problem is that the secretary who responsible to switch the hd always make mistakes and put the recent one. we want to add a section to the batch file that check the volume serial number of the external hd and make sure it is the one for backuping this week. for example: this week i am using HD #1, and his serial number is xxxx-xxxx.
    if the secretary put a different number, it should write, "HD doesnt match" or something...

    is anyone know how to do this?

    Thanks in advance
    Assaf
     
  2. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,418
    Even though it appears you're having the same problem, please start a new thread when you have a new issue. It's very difficult to keep two problems straight and who's working on what in a single thread. I've created a new thread for your issue here. Thanks for your cooperation.
     
  3. ~Candy~

    ~Candy~ Retired Administrator

    Joined:
    Jan 27, 2001
    Messages:
    103,706
    Hi and welcome. Wouldn't it be easier to label the drives themselves? :D
     
  4. StumpedTechy

    StumpedTechy

    Joined:
    Jul 7, 2004
    Messages:
    7,234
    Why not put a dummy file on each HDD. E.G. Name a blank file Monday.1 Tuesday.1 Wednesday.1 then do an if not exist statement or something?
     
  5. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,418
    Well, the VOL command will output the label and serial number, so you could probably use a simple batch utility to scan that and find out what volume or label was mounted. You can redirect the output of the VOL command to a text file:

    VOL >C:\volume.txt
     
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/484953

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice