Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old May 28th, 2004, 01:55 PM
cavall cavall is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 20 cavall User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 8 m 26 sec
Reputation Power: 0
DOS/NT bat file help needed URGENT

I have a file that is created (0526000004.TMP) in one directory. The file is creating daily and has the format of today's date being in the name (ie. file above is the file for May 26, 2004).

I need to go to that directory and grab that file (based on today's date, but formatted like the filename is formatted "MMDDxxxxYY".TMP), copy or move that file to another directory called "Backup", then copy that file to another directory called "Renamed" and rename the file "Import.TMP". From the "Renamed" directory, I will be importing that file daily into an MS Access Db.

This will be a daily occurrence.

Im rough with DOS commands, so any help would be much appreciated!

Thanks
Cavall

Last edited by cavall : May 28th, 2004 at 01:58 PM. Reason: NT script instead of DOS -- win2k or xp box

Reply With Quote
  #2  
Old June 21st, 2004, 01:04 PM
DevCon4 DevCon4 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Northern Thailand
Posts: 74 DevCon4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m 51 sec
Reputation Power: 5
DOD/NT BAT to copy rename daily

Hi Cavall,

Do you still need this?

If so, what OS(s) are you using? Exactly.

And does the xxxx in the filename matter?

DC

Reply With Quote
  #3  
Old June 21st, 2004, 01:32 PM
cavall cavall is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 20 cavall User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 8 m 26 sec
Reputation Power: 0
nah

No thanks.. i got it figured out..

But I appreciate the help ...

Cheers,
cav

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > DOS/NT bat file help needed URGENT


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway