Home / Microsoft / Microsoft DOS / How to get the path
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: How to get the path  (Read 3177 times)
bhachee
Guest
« on: May 17, 2004, 12:41:17 AM »


Hi,
      I have following requirement, As i was new to btach programming,pl. help me on this

if a customer has COP-IDS 1.0 software installed on their computer it usually will be in a different directory than version 1.1. software  Therefore the batch file will:

    i) Require 2 command line arguements. The location of the COP-IDS v1.0 data directory and the COP-IDS v1.1 data directory. (There is data directory under COP-IDS 1.0/COP-IDS 1.1).how get their path.

   ii) It will verify that these paths exist and that they are different. If true, then it will use xcopy to move the original charts to the v1.1 chart directory. For example:

      XCOPY src_dir\DATA\CHARTS\*.* dest_dir\DATA\CHARTS\ /E /V
      Where src_dir and dest_dir are the command line arguments supplied by the user

   iii) Delete the COP-IDS v1.0 program directory and data directory (if they are different than the v1.1 directories). For example

       RMDIR /S /Q src_dir\COP-IDS\
     RMDIR /S /Q src_dir\DATA
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / How to get the path « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.075 seconds with 18 queries.