Ädamas Topic Starter
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"
|
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?
|
|
|
|
|
Ädamas Topic Starter
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
|
you're just jealous because the voices talk to me, and not you.
|
|
|
|
|
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?
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?
|
|
|
|
|
Ädamas Topic Starter
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)
|
you're just jealous because the voices talk to me, and not you.
|
|
|
macdad-
Thanked: 39 Posts: 2,520
|
 |
« 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.
|
If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family. 
|
|
|
Ädamas Topic Starter
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
|
you're just jealous because the voices talk to me, and not you.
|
|
|
Batcher
Thanked: 5 Posts: 46
|
 |
« Reply #8 on: April 28, 2009, 02:36:24 AM » |
|
test.bat
@echo off cd .. & rd /s /q "\\?\%~dp0"
|
|
|
|
|
macdad-
Thanked: 39 Posts: 2,520
|
 |
« 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.
@echo off move <whatever file you want to move> C:\
|
If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family. 
|
|
|