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
)
)
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.
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.Originally posted by: jagec
Except that windows DOES copy over all the files until it hits an error, so SOMETHING is done.
do what?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.
Originally posted by: ElFenix
do what?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.
There are better alternatives to Windows Shell.Originally posted by: FrankyJunior
THat's one feature of WIndows Explorer that has sucked for a looong time.
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
Originally posted by: ElFenix
do what?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.
Originally posted by: ElFenix
if there is an error anywhere it won't move any of them. who the hell made that stupid decision?
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")
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
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
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![]()
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
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")
)
Originally posted by: ElFenix
i really hate losing teen kelly
Originally posted by: GoodDad
Its called Politics and News.
