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 > General > Chit Chat > Batch command challenge to copy file only created today

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-29-04, 14:47
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
Batch command challenge to copy file only created today

I want to copy files from one directly to another
directly say so i say

copy c:\VIEW\ *. xls c:\LOCALDOCUMENT\change\


Here is the challenge

How do i
1) make the batch file fire everday at a fixed time say 8 am

2) how to i make only those file that were created today be copied not all
like the above statement does
__________________
bigfoots
Reply With Quote
  #2 (permalink)  
Old 03-29-04, 15:02
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
What platform?
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #3 (permalink)  
Old 03-29-04, 15:06
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
Ms dos window 2000

MS dos window 2000

thks for your help
__________________
bigfoots
Reply With Quote
  #4 (permalink)  
Old 03-29-04, 15:20
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
I meant are you using a database like sql server?

Maybe @ commands?

got a programming language?

http://www.dbforums.com/showthread.p...57#post3651357
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #5 (permalink)  
Old 03-29-04, 15:26
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
no just direct dos comman

no just direct dos commands on window 2000
__________________
bigfoots
Reply With Quote
  #6 (permalink)  
Old 03-29-04, 15:50
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
You could use the Windows Task Scheduler to launch XCOPY with the /D option.

-PatP
Reply With Quote
  #7 (permalink)  
Old 03-29-04, 16:01
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
how to i make only those file that were created today

2) how to i make only those file that were created today be copied not all
like the above statement does
__________________
bigfoots
Reply With Quote
  #8 (permalink)  
Old 03-29-04, 16:23
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
You read the documentation on the /D option.

-PatP
Reply With Quote
  #9 (permalink)  
Old 03-30-04, 15:33
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
cant find to download installer

I downloaded some stuff did not work


so what to download from here


http://www.microsoft.com/msdownload/...sdk/sdkupdate/


or some other link
__________________
bigfoots
Reply With Quote
  #10 (permalink)  
Old 03-30-04, 16:05
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
What were you hoping to acheive using the SDK that you couldn't do with a scheduled XCOPY command using the /D option to limit the copied files to a given date or later?

-PatP
Reply With Quote
  #11 (permalink)  
Old 03-30-04, 16:28
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
look at next

look at next
__________________
bigfoots

Last edited by sjumma; 03-30-04 at 16:43.
Reply With Quote
  #12 (permalink)  
Old 03-30-04, 16:43
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
window nt 4

in 2000 it at start program--accessories ---system--schedule task

where it is on window nt 4
__________________
bigfoots
Reply With Quote
  #13 (permalink)  
Old 03-30-04, 17:33
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Re: window nt 4

Quote:
Originally posted by sjumma
in 2000 it at start program--accessories ---system--schedule task

where it is on window nt 4
The GUI scheduler doesn't exist in NT 4.0, although something pretty close exists in the NT Resource Kit.

You can use the AT command to schedule jobs in NT 4.0.

-PatP
Reply With Quote
  #14 (permalink)  
Old 04-05-04, 12:28
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
how to see scheduled job after at command

I have configured the at comman


how do i list the at command to see all at commands
__________________
bigfoots
Reply With Quote
  #15 (permalink)  
Old 04-05-04, 12:42
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Re: how to see scheduled job after at command

Quote:
Originally posted by sjumma
I have configured the at comman


how do i list the at command to see all at commands
You can get the "quick and dirty" list by typing:
Code:
AT /?
at the command prompt. You can get more complete documentation by looking in the NT 4.0 help files or Tech-Net, for the AT Command.

-PatP
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