Search found 6 matches
- 12 Dec 2014 08:09
- Forum: DOS Batch Forum
- Topic: Batch File First day and last day of current month
- Replies: 10
- Views: 21460
Re: Batch File First day and last day of current month
Given the time constraints I have to convert all these files to this method, this will work PERFECTLY for this request. Thank you everyone for the help and P.S. I dont care about Leap Year today...
- 11 Dec 2014 23:55
- Forum: DOS Batch Forum
- Topic: Batch File First day and last day of current month
- Replies: 10
- Views: 21460
Re: Batch File First day and last day of current month
The batch file runs every month, so I dont really want to hard code a bunch of possibilities. I want to run the job the execute the batch file that makes the output file that is named filename_2014-12-01:2014-12-31.txt or something similar (like filename_20141201_20141231.txt) Not all months end in ...
- 11 Dec 2014 23:38
- Forum: DOS Batch Forum
- Topic: Batch File First day and last day of current month
- Replies: 10
- Views: 21460
Batch File First day and last day of current month
I need a batch file command that adds to the file name the first and last day of the month. For example, filename_2014-12-01:2014-12-31.txt I've tried all kinds of things with no luck. Here's something that I tried, but I can't get the last day of current month (FYI - i was playing around) @echo off...
- 17 Nov 2014 14:37
- Forum: DOS Batch Forum
- Topic: Copy File where filename contains a date
- Replies: 7
- Views: 4731
Re: Copy File where filename contains a date
Asterisks were from me. I took out my name and replaced it. Sorry. I made some changes and it works exactly how I want it to. Do you see any problem with the code? P.S. I would have never gotten there without your help. Thank you @echo off PUSHD "\\Computer\RPTest" FOR /F "delims=|&qu...
- 17 Nov 2014 13:32
- Forum: DOS Batch Forum
- Topic: Copy File where filename contains a date
- Replies: 7
- Views: 4731
Re: Copy File where filename contains a date
I keep getting an error message: C:\Users\*>C:\Users\*\Desktop\test.bat '"set newfile= Volume in drive O has no label."' is not recognized as an interna l or external command, operable program or batch file. '"set newfile= Volume Serial Number is 9XXX-XXXX"' is not recognized as ...
- 17 Nov 2014 12:56
- Forum: DOS Batch Forum
- Topic: Copy File where filename contains a date
- Replies: 7
- Views: 4731
Copy File where filename contains a date
Each day I get a file delivered to a folder. I keep a history of all the files, so the folder is quite full. I need to figure out a way to copy the most recently delivered file to a new location. I was thing something like this: copy "\\Root\SharedFolder\File.xlsx" \\server\site\Folder\ , ...