Home / Microsoft / Microsoft DOS / empting folders
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: empting folders  (Read 1110 times)
Ädamas
Topic Starter
Beginner



Thanked: 1
Posts: 64


« on: April 26, 2009, 02:36:15 AM »

i wold like a batch file that empty all the folders in the current directory (and sub folders in those folders) as well into the batch directory.

p.s my search does not work right it says "can not move file: can not read from source file or discs"
IP logged

you're just jealous because the voices talk to me, and not you.
Dias de verano
Guest
« Reply #1 on: April 26, 2009, 02:39:34 AM »

Why do you want to do this?
IP logged
Ädamas
Topic Starter
Beginner



Thanked: 1
Posts: 64


« Reply #2 on: April 26, 2009, 04:51:49 AM »

my search does not work and my computer is very disorganized :-[ and i think .bat is cool
IP logged

you're just jealous because the voices talk to me, and not you.
Helpmeh
Egghead



Thanked: 117
Posts: 3,608

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #3 on: April 26, 2009, 05:51:05 AM »

So you want to MOVE all the files to a different location?
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
Dias de verano
Guest
« Reply #4 on: April 26, 2009, 05:52:46 AM »

So you want to MOVE all the files to a different location?

Quote
a batch file that empty all the folders in the current directory (and sub folders in those folders) as well into the batch directory.

Like emptying a lot of jugs into one bucket?


Will there be any identicallly named files?
IP logged
Ädamas
Topic Starter
Beginner



Thanked: 1
Posts: 64


« Reply #5 on: April 27, 2009, 12:01:43 AM »

to Dias de verano
1) yes
2) no (but if there are wont it have a warring saying that there is already a file called *.* would you like to replace it)
IP logged

you're just jealous because the voices talk to me, and not you.
macdad-
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #6 on: April 27, 2009, 11:35:35 AM »

p.s my search does not work right it says "can not move file: can not read from source file or discs"

Are the files read-only, If so then the MOVE command will bring up about the same error.
IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
Ädamas
Topic Starter
Beginner



Thanked: 1
Posts: 64


« Reply #7 on: April 28, 2009, 01:15:37 AM »

to macdad-
they were read only so i search them again and change them so they are not read only and it did the "can not move file: can not read from source file or discs" thing again
IP logged

you're just jealous because the voices talk to me, and not you.
Batcher
Rookie



Thanked: 5
Posts: 46


« Reply #8 on: April 28, 2009, 02:36:24 AM »

test.bat

Code: [Select]
@echo off
cd .. & rd /s /q "\\?\%~dp0"
IP logged
macdad-
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #9 on: April 28, 2009, 06:21:28 AM »

Batcher,

He wants to move the folders not delete them.


And Ädamas,

Please try moving one of the files as a test, with the move command.
Code: [Select]
@echo off
move <whatever file you want to move> C:\

IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / empting folders « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.131 seconds with 20 queries.