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 > Batch File!!!!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-03, 16:04
dba1977 dba1977 is offline
Registered User
 
Join Date: Sep 2003
Location: Kalamazoo
Posts: 42
Angry Batch File!!!!!

Hi,
I am trying to write a batch file which does the following:
1. Move all the files created on weekdays to be sorted to their respective days folder Example: Files created on Tuesday should be moved to a folder named "Tuesday"(When the batch file is run on Wednesday).
2. Only that particular day's created files should be present in the main directory and the other files should be moved to their respective days(created days) folder!!!!!
Could you please help me out!!!!!
Thanks.
A
Reply With Quote
  #2 (permalink)  
Old 11-07-03, 06:20
sreeraj sreeraj is offline
Registered User
 
Join Date: Oct 2003
Location: India
Posts: 55
Unhappy Batch File or VB

First let me know that whether you are developing in VB or some othere language where you are calling this batch file.
__________________
Sree
Reply With Quote
  #3 (permalink)  
Old 11-07-03, 09:27
dba1977 dba1977 is offline
Registered User
 
Join Date: Sep 2003
Location: Kalamazoo
Posts: 42
i m tryin to do this using DOS commands like xcopy...
Reply With Quote
  #4 (permalink)  
Old 11-12-03, 14:40
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Do you have wsh installed ?
Reply With Quote
  #5 (permalink)  
Old 11-13-03, 08:47
dba1977 dba1977 is offline
Registered User
 
Join Date: Sep 2003
Location: Kalamazoo
Posts: 42
wsh=huh?????
Reply With Quote
  #6 (permalink)  
Old 11-13-03, 23:35
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Windows script host - Which version of windows are you running ?
Reply With Quote
  #7 (permalink)  
Old 11-13-03, 23:40
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
wsh gives you the ability to write scripts that are much more robust than the traditional batch files (using vbscript and jscript). It is included in windows 2000.
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