Search found 12 matches

by DOSScriptWriter
10 Apr 2011 14:23
Forum: DOS Batch Forum
Topic: Compare date last modified of two files
Replies: 10
Views: 15980

Re: Compare date last modified of two files

Done. Thanks so much. Appreciate everybody's help.
by DOSScriptWriter
10 Apr 2011 09:11
Forum: DOS Batch Forum
Topic: Compare date last modified of two files
Replies: 10
Views: 15980

Re: Compare date last modified of two files

I did. Still won't work :(
by DOSScriptWriter
09 Apr 2011 21:04
Forum: DOS Batch Forum
Topic: Compare date last modified of two files
Replies: 10
Views: 15980

Re: Compare date last modified of two files

Okay I tried the code below: for /f %%a in ("C:\New Folder1\file.txt") do for /f %%b in ("C:\New Folder2\file.txt") do ( if not "%%~ta"=="%%~tb" copy /y "C:\New Folder1\file.txt" "C:\New Folder2\file.txt" ) but could not get it to work. Do...
by DOSScriptWriter
21 Oct 2010 10:25
Forum: DOS Batch Forum
Topic: Copy files from subfolders to one folder based on criteria
Replies: 8
Views: 9687

Re: Copy files from subfolders to one folder based on criter

Forgot to mention...All the files in all subfolders of C:\MyLocalCopies\ are Excel files
by DOSScriptWriter
21 Oct 2010 10:22
Forum: DOS Batch Forum
Topic: Copy files from subfolders to one folder based on criteria
Replies: 8
Views: 9687

Re: Copy files from subfolders to one folder based on criter

Is there a way to delete columns N onwards in all folders in C:\MyLocalCopies\ such as C:\MyLocalCopies\PizzaHut, C:\MyLocalCopies\Unos etc. except C:\MyLocalCopies\Dominos from which I need columns M onwards deleted?

Thank you
by DOSScriptWriter
20 Oct 2010 15:11
Forum: DOS Batch Forum
Topic: Copy files from subfolders to one folder based on criteria
Replies: 8
Views: 9687

Copy files from subfolders to one folder based on criteria

I have a directory structure: K:\Franchises\Seattle K:\Franchises\New York K:\Franchises\Boston... and each city has hundreds of files. I need to copy all the files from each city's folder having Dominos in the filename to C:\MyLocalCopies\Dominos. Likewise all files having PizzaHut in the filename ...
by DOSScriptWriter
19 Oct 2010 22:04
Forum: DOS Batch Forum
Topic: Compare date last modified of two files
Replies: 10
Views: 15980

Compare date last modified of two files

I have two files with the same name, let's say "C:\file.txt" and "D:\file.txt". I need a script which when I run it, will compare date last modified for the two and write file.txt from C to D if they are not the same.

Thanks
by DOSScriptWriter
19 Oct 2010 17:33
Forum: DOS Batch Forum
Topic: Create folders named after each day in current month
Replies: 5
Views: 5970

Re: Create folders named after each day in current month

Couldn't get any better!

Thanks a ton. Glad there are smart people willing to share their knowledge.
by DOSScriptWriter
19 Oct 2010 08:51
Forum: DOS Batch Forum
Topic: Create folders named after each day in current month
Replies: 5
Views: 5970

Re: Create folders named after each day in current month

Great! Works like a charm. Thank you so much. I need your help doing one more task though. I have an Excel template "GLs.xlt" in "C:\". Just like we created new folders with names of each day in current month, I need to create copies of this template in "C:\" named afte...
by DOSScriptWriter
18 Oct 2010 15:09
Forum: DOS Batch Forum
Topic: Create folders named after each day in current month
Replies: 5
Views: 5970

Create folders named after each day in current month

If I run the script any day in October, it should generate folders 2010-10-01, 2010-10-02......2010-10-31 in "C:\". So far I have the following which creates a folder named after today's date only. Set mm=%DATE:~4,2% Set dd=%DATE:~7,2% Set yyyy=%DATE:~10,4% mkdir %yyyy%%mm%%dd% mkdir "...