why can't windows just move all the files it can?

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

FoBoT

No Lifer
Apr 30, 2001
63,084
15
81
fobot.com
maybe you are just doing it wrong

how are you moving the files? in the GUI/drag-drop?

there is your problem, get back to the command line and do it
 

djheater

Lifer
Mar 19, 2001
14,637
2
0
FOR /f %%e in ('DIR /b D:\PORN\*.*') do (
COPY D:\PORN\%%e C:\PORN\%%e
IF %ERRORLEVEL%==0 (
ECHO .........PORN file %%e copied successfully>> C:\PORN\PornCopy.log 2>>&1
) ELSE (
ECHO .........PORN file %%e copy failed>> C:\PORN\PornCopy.log 2>>&1
)
)

Copy that into a .bat an quit whining.
 

jagec

Lifer
Apr 30, 2004
24,442
6
81
Originally posted by: dullard
I hate that too. But on rare occasions it is a decent feature. Windows is built around a simple philosophy: either (a) the user action works as intended or (b) nothing is done at all. When an error appears, it is obvious which option Windows will take - b.

Except that windows DOES copy over all the files until it hits an error, so SOMETHING is done. I hate that "feature". I also hate the undeletable media files error. Those two things SERIOUSLY need to be worked on.
 

SagaLore

Elite Member
Dec 18, 2001
24,036
21
81
But yet it still takes all that time as if it is moving them.

I know that on at least XP, if I move a folder with files in it, it will copy them until either space runs out, or there is an error, and just stop. I wish if it was an error, it would at least prompt to skip that file (for example when moving stuff from a corrupted drive).
 

dullard

Elite Member
May 21, 2001
26,078
4,729
126
Originally posted by: jagec
Except that windows DOES copy over all the files until it hits an error, so SOMETHING is done.
Sorry, this thread was about moving. The move will be undone. I should have put an asterisk in my post above saying it refers to things that could harm you. Copying a file won't typically harm you, but moving a file certainly could.

 

ElFenix

Elite Member
Super Moderator
Mar 20, 2000
102,402
8,574
126
Originally posted by: djheater
FOR /f %%e in ('DIR /b D:\PORN\*.*') do (
COPY D:\PORN\%%e C:\PORN\%%e
IF %ERRORLEVEL%==0 (
ECHO .........PORN file %%e copied successfully>> C:\PORN\PornCopy.log 2>>&1
) ELSE (
ECHO .........PORN file %%e copy failed>> C:\PORN\PornCopy.log 2>>&1
)
)

Copy that into a .bat an quit whining.
do what?
 

Kelemvor

Lifer
May 23, 2002
16,928
8
81
It doesn't not move anything, it copies them up until it dies and then stops. Then you have to fix that one files and start over. I still pop up XCopy in a DOS window any time that happens because you can set it to not copy things that are already there.

THat's one feature of WIndows Explorer that has sucked for a looong time.
 

djheater

Lifer
Mar 19, 2001
14,637
2
0
Originally posted by: ElFenix
Originally posted by: djheater
FOR /f %%e in ('DIR /b D:\PORN\*.*') do (
COPY D:\PORN\%%e C:\PORN\%%e
IF %ERRORLEVEL%==0 (
ECHO .........PORN file %%e copied successfully>> C:\PORN\PornCopy.log 2>>&1
) ELSE (
ECHO .........PORN file %%e copy failed>> C:\PORN\PornCopy.log 2>>&1
)
)

Copy that into a .bat an quit whining.
do what?


Copy that text into a .txt file (notepad) then change the extension to .bat and double-click it.

Change D:\Porn to the directory you want to copy FROM and C:\Porn to the directory you want to copy TOO.
 

ActuaryTm

Diamond Member
Mar 30, 2003
6,858
12
81
Originally posted by: FrankyJunior
THat's one feature of WIndows Explorer that has sucked for a looong time.
There are better alternatives to Windows Shell.
 

rudeguy

Lifer
Dec 27, 2001
47,351
14
61
Originally posted by: ElFenix
Originally posted by: Amused
Originally posted by: ElFenix
you're just bitter because you're cold!

Yes, but that doesn't change the fact that this is the [nik] WRONG FORUM!!! [/nik]

i don't see 'rant' listed as a forum category

Its called Politics and News.
 

vshah

Lifer
Sep 20, 2003
19,003
24
81
Originally posted by: ElFenix
Originally posted by: djheater
FOR /f %%e in ('DIR /b D:\PORN\*.*') do (
COPY D:\PORN\%%e C:\PORN\%%e
IF %ERRORLEVEL%==0 (
ECHO .........PORN file %%e copied successfully>> C:\PORN\PornCopy.log 2>>&1
) ELSE (
ECHO .........PORN file %%e copy failed>> C:\PORN\PornCopy.log 2>>&1
)
)

Copy that into a .bat an quit whining.
do what?

please say thats sarcasm Mr. 50k posts!!!
 

MaxDSP

Lifer
May 15, 2001
10,056
0
71
as long as we're writing batch files, does anyone have one that deletes all the files and folders in Temporary Internet Files and Temp files in Docu & Settings\user\local Settings\?
 

MaxDSP

Lifer
May 15, 2001
10,056
0
71
would this work?

FOR /f %%e in ('DIR /b C:\Documents and Settings\userl\Local Settings\Temporary Internet

Files\*.*')

do (
DEL C:\Documents and Settings\user\Local Settings\Temporary Internet Files\*.*)

IF %ERRORLEVEL%==0 (
ECHO .........Deleted file %%e copied successfully>> C:\delerrors.log 2>>&1
)
ELSE
(
ECHO .........Deleted file %%e copy failed>> C:\delerrors.log 2>>&1
)
)
 

Gibson486

Lifer
Aug 9, 2000
18,378
2
0
I hate it when I try to delete porn and it gives me a message saying that the file is still in use;)
 

DaFinn

Diamond Member
Jan 24, 2002
4,725
0
0
Originally posted by: ElFenix
if there is an error anywhere it won't move any of them. who the hell made that stupid decision?

And who the hell made the stupid decision to post this in WRONG FORUM? ;)
 

djheater

Lifer
Mar 19, 2001
14,637
2
0
Originally posted by: MaxDSP
would this work?

FOR /f %%e in ('DIR /b "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\*.*"') do ( DEL "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\%%e")

Change <user> to the username and enclose your spaced dir names in quotes as above. There's no need for the logging on this..
I just wanted to give the OP an idea of the porn he'd need to replace.

It should all be on one line... btw
 

MaxDSP

Lifer
May 15, 2001
10,056
0
71
Originally posted by: djheater
Originally posted by: MaxDSP
would this work?

FOR /f %%e in ('DIR /b "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\*.*"') do ( DEL "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\%%e")

Change <user> to the username and enclose your spaced dir names in quotes as above. There's no need for the logging on this..
I just wanted to give the OP an idea of the porn he'd need to replace.

It should all be on one line... btw

sweet, thanks
 

djheater

Lifer
Mar 19, 2001
14,637
2
0
Originally posted by: MaxDSP
Originally posted by: djheater
Originally posted by: MaxDSP
would this work?

FOR /f %%e in ('DIR /b "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\*.*"') do ( DEL "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\%%e")

Change <user> to the username and enclose your spaced dir names in quotes as above. There's no need for the logging on this..
I just wanted to give the OP an idea of the porn he'd need to replace.

It should all be on one line... btw

sweet, thanks


Let me know if it works ;)
 

MaxDSP

Lifer
May 15, 2001
10,056
0
71
Originally posted by: djheater
Originally posted by: MaxDSP
Originally posted by: djheater
Originally posted by: MaxDSP
would this work?

FOR /f %%e in ('DIR /b "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\*.*"') do ( DEL "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\%%e")

Change <user> to the username and enclose your spaced dir names in quotes as above. There's no need for the logging on this..
I just wanted to give the OP an idea of the porn he'd need to replace.

It should all be on one line... btw

sweet, thanks


Let me know if it works ;)


I'm done with del crap today...just cleaned like 3 machines today the hard way. Will try this tomorrow maybe
 

djheater

Lifer
Mar 19, 2001
14,637
2
0
Originally posted by: MaxDSP
Originally posted by: djheater
Originally posted by: MaxDSP
Originally posted by: djheater
Originally posted by: MaxDSP
would this work?

FOR /f %%e in ('DIR /b "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\*.*"') do ( DEL "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\%%e")

Change <user> to the username and enclose your spaced dir names in quotes as above. There's no need for the logging on this..
I just wanted to give the OP an idea of the porn he'd need to replace.

It should all be on one line... btw

sweet, thanks


Let me know if it works ;)


I'm done with del crap today...just cleaned like 3 machines today the hard way. Will try this tomorrow maybe


If you want to be really crazy you can try this:
FOR /f %%e in ('DIR /b "C:\Documents and Settings"') do (
FOR /f %%p in ('DIR /b "C:\Documents and Settings\%%e\Local Settings\Temporary Internet Files\*.*"') do (
DEL "C:\Documents and Settings\%%e\Local Settings\Temporary Internet Files\%%p")
)

This will fill in all the user names from the Documents and Settings folder, as long as they don't contain any spaces (It'll fail/skip 'All Users' for example). That way you can kill all the files for every user on the machine at once.

PS... you'd probably get into trouble if you tried it on a mchine with more than 10 user profiles. your variables would start to overlap....
 

shilala

Lifer
Oct 5, 2004
11,437
1
76
Use GetDataBack NTFS (or fat). It'll copy corrupted files and all.
It's way fast.