How to delete files in folder using powershell
Open Powershell
Run Command : Remove-Item –path c:\testfolder\* –recurse
* means any
Showing posts with label delete. Show all posts
Showing posts with label delete. Show all posts
Monday, April 2, 2018
Saturday, February 4, 2017
Copy Multi Folders using Robocopy for "Infinite Folders"
Intro dulu ya ....
gw lagi coding php, pake php designer 8. trus gw coba-coba toolsnya. ada export, eh pas gw coba, kok ga beres2 copynya?? trus gw cancel. pas gw liat, eh ternyata ngebuat folder yg banyak bgt.
gw coba cek pake software2, ada sekitar 475 folders (dibaca: tak terbatas a.k. infinity / infinite).
foldernya ampe ga bisa dibuka.
trus gw googling2.
- pake cmd , pake cara buat remove autorun.inf nya SMADAV seperti rmdir, rd, del, erase.
- install winUtilities, Unlocker, pake power shell, dsb.
- trus gw coba robocopy. pake cmd jg. setelah menggila lama , akhirnya nemu juga caranya. yaitu
robocopy [source] [dest] /purge /s /mov
contoh : robocopy c:\hapus\a\ c:\delete\a\ /purge /s /mov
beres deh...
So, ini kesimpulannya :
Pakai Robocopy (using cmd)
command :
robocopy [source] [dest] /purge /s /mov
contoh : robocopy c:\hapus\a\ c:\delete\a\ /purge /s /mov
**dipublish setelah gw liat ini as draft (udah 4 tahun sepertinya...)
gw lagi coding php, pake php designer 8. trus gw coba-coba toolsnya. ada export, eh pas gw coba, kok ga beres2 copynya?? trus gw cancel. pas gw liat, eh ternyata ngebuat folder yg banyak bgt.
gw coba cek pake software2, ada sekitar 475 folders (dibaca: tak terbatas a.k. infinity / infinite).
foldernya ampe ga bisa dibuka.
trus gw googling2.
- pake cmd , pake cara buat remove autorun.inf nya SMADAV seperti rmdir, rd, del, erase.
- install winUtilities, Unlocker, pake power shell, dsb.
- trus gw coba robocopy. pake cmd jg. setelah menggila lama , akhirnya nemu juga caranya. yaitu
robocopy [source] [dest] /purge /s /mov
contoh : robocopy c:\hapus\a\ c:\delete\a\ /purge /s /mov
beres deh...
So, ini kesimpulannya :
Pakai Robocopy (using cmd)
command :
robocopy [source] [dest] /purge /s /mov
contoh : robocopy c:\hapus\a\ c:\delete\a\ /purge /s /mov
**dipublish setelah gw liat ini as draft (udah 4 tahun sepertinya...)
Wednesday, September 7, 2011
Delete Folder and Subfolder
click start >> run >> fill " cmd " in the blank then enter or click OK
then write these :
then, type y and press ENTER
note :if you want do this without confirmation, add /q to the command
eg. rd\\.\e:\autorun.inf /s /q
then write these :
- rd\\.\directory:\foldername /s
then, type y and press ENTER
note :if you want do this without confirmation, add /q to the command
eg. rd\\.\e:\autorun.inf /s /q
Labels :
all directories,
all files,
all folders,
delete,
Folder,
Subfolder
Subscribe to:
Posts (Atom)