If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > DOS COPY problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-03, 08:43
dba1977 dba1977 is offline
Registered User
 
Join Date: Sep 2003
Location: Kalamazoo
Posts: 42
DOS COPY problem

Hi,
I want to create a batch file which copies existing files in one directory to another directory(actually sub-directories in the second directory) based on the dates they were created using MS-DOS command.
Example:
File A created on Jan-10-03
File B created on Dec-12-97
File A & B are in C:/ drive and when I run the batch file the File A should be copied to d:/Jan & File B should be copied to D:/Dec

Please let me know!
Thanks.
Reply With Quote
  #2 (permalink)  
Old 10-19-03, 10:07
Jumper Jumper is offline
Registered User
 
Join Date: Sep 2003
Location: Gloucester
Posts: 28
Not too hard - the command is

Copy DirectoryName\File.Extension D:\DirectoryName\SubDirtoryName
Reply With Quote
  #3 (permalink)  
Old 10-31-03, 13:54
dba1977 dba1977 is offline
Registered User
 
Join Date: Sep 2003
Location: Kalamazoo
Posts: 42
I want the Batch file to do this dynamically and I dont think your command will help this out!

Quote:
Originally posted by Jumper
Not too hard - the command is

Copy DirectoryName\File.Extension D:\DirectoryName\SubDirtoryName
Reply With Quote
  #4 (permalink)  
Old 11-01-03, 01:14
sreeraj sreeraj is offline
Registered User
 
Join Date: Oct 2003
Location: India
Posts: 55
Wink Copying Files

Hi


If you copying files using a vb application why do you use batch files instead use FileSystemObject.

It is very easy

Give it a try
__________________
Sree
Reply With Quote
  #5 (permalink)  
Old 11-03-03, 16:01
dba1977 dba1977 is offline
Registered User
 
Join Date: Sep 2003
Location: Kalamazoo
Posts: 42
VB and DOS I am sorry I don't understand...I new to this field! Please help me out!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On