Search found 10 matches

by MikeP
17 Apr 2012 06:38
Forum: DOS Batch Forum
Topic: Using a batch to change the File Date (recursively?)
Replies: 20
Views: 24587

Re: Using a batch to change the File Date (recursively?)

Success !

4gb in about 35seconds :)

Thank You Very Much

-Mike
by MikeP
16 Apr 2012 19:40
Forum: DOS Batch Forum
Topic: Using a batch to change the File Date (recursively?)
Replies: 20
Views: 24587

Re: Using a batch to change the File Date (recursively?)

I can perform copy *.* /B + ,, /Y from inside any folder with success I was just looking for a way to not have to go folder to folder in command shell On the ethical side, this may be a grey area, since technically I am supposed to open all 4gb of files, review, and save or delete, but 98% of these ...
by MikeP
16 Apr 2012 19:28
Forum: DOS Batch Forum
Topic: Using a batch to change the File Date (recursively?)
Replies: 20
Views: 24587

Re: Using a batch to change the File Date (recursively?)

The very first (2) examples do not appear to be working?
Windows 7 x64 or x32

I just get a blinking cursor (sorry working my way from the bottom up)

-Mike
by MikeP
16 Apr 2012 19:17
Forum: DOS Batch Forum
Topic: Using a batch to change the File Date (recursively?)
Replies: 20
Views: 24587

Re: Using a batch to change the File Date (recursively?)

As a quick test I tried moving the batch file to my desktop, but it just started copying files to my desktop instead. . .

- Mike
by MikeP
16 Apr 2012 18:27
Forum: DOS Batch Forum
Topic: Using a batch to change the File Date (recursively?)
Replies: 20
Views: 24587

Re: Using a batch to change the File Date (recursively?)

This one is faster: for /r "h:\" %%D in (.) do copy /b "%%~fD\*"+ for /F "tokens=*" %%G in ('dir /b /s /ad H:\') do copy /b "%%G\*"+ for /F "tokens=*" %%G in ('dir /b /s /ad H:') do copy "%%G\*.*" /B + ,, /Y I tried the three above and had ...
by MikeP
16 Apr 2012 18:18
Forum: DOS Batch Forum
Topic: Using a batch to change the File Date (recursively?)
Replies: 20
Views: 24587

Re: Using a batch to change the File Date (recursively?)

I am doing this because I have 4GB of files that are falling into our "new" file scanning software that identifies any file older than 12 months -then automatically schedules the files for deletion unless you open each individual file and save with 30 days. This is stop gap solution to buy...
by MikeP
16 Apr 2012 15:34
Forum: DOS Batch Forum
Topic: Using a batch to change the File Date (recursively?)
Replies: 20
Views: 24587

Re: Using a batch to change the File Date (recursively?)

The power of Command Shell (Dos / Batch scripting) always amazes me, a simple but effective tool that is often overlooked (and because of that most often not restricted by IT)
:lol:
My initial "simple" test in a sub directory was lightning fast (about 100 files)

-Mike
by MikeP
16 Apr 2012 15:09
Forum: DOS Batch Forum
Topic: Using a batch to change the File Date (recursively?)
Replies: 20
Views: 24587

Re: Using a batch to change the File Date (recursively?)

.... also, I would love to use a 3rd party app, but I am working from a corporate machine that is severely limited.
So I am trying to accomplish this within the means at my disposal (at home I would have gone the 3rd party route before considering this)

-Thanks,

Mike
by MikeP
16 Apr 2012 15:05
Forum: DOS Batch Forum
Topic: Using a batch to change the File Date (recursively?)
Replies: 20
Views: 24587

Re: Using a batch to change the File Date (recursively?)

I think modified date, but how would the syntax change for created date?

Also to be clear can I use the above statement directly from cmd.exe or a batch file?

(Going to experiment myself when I am back at a computer. . .)

- Thanks for the suggestions,

Mike
by MikeP
16 Apr 2012 11:53
Forum: DOS Batch Forum
Topic: Using a batch to change the File Date (recursively?)
Replies: 20
Views: 24587

Using a batch to change the File Date (recursively?)

In Command Shell copy *.* /B + ,, /Y will copy/replace all of the files in my directory, and give them todays date I would like to create the same thing, but for my entire h: (including subfolders) Initially I thought xcopy or FOR but I haven't had much luck, I would greatly appreciate any help in t...