Go Back   Computer Forums > General Computing > Software and Operating Systems
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 04-05-2013, 07:11 AM   #1
Solid State Member
 
Join Date: Apr 2013
Location: United Kingdom
Posts: 10
Default This may sound like a silly question...

But is there a way to get rid of a folder without it's contents?

I know it sounds ridiculous but I have a folder with about 100 folders in it, each with 10 folders in them, with each of those having about 20 files in it.
So that's a lot of cutting and pasting, is there a way to get all these files easily without cutting and pasting?

I figure the easiest way, if it were possible, to delete the folder part but keep the contents part

Easiest way to look at it is:
FolderMain > Folders 1-100 > Folders 1-10 > Files

I wish to have:
FolderMain > Files
__________________

keez1993 is offline   Reply With Quote
Old 04-07-2013, 06:36 PM   #2
Baseband Member
 
Join Date: Apr 2013
Location: USA
Posts: 63
Default Re: This may sound like a silly question...

Oh dear that is a lot of cutting and pasting, don't envy you there. I suppose you could do a file search on the main folder and just cut and paste all the files from the list. But you would probably need to do a search for each specific file type, jpg/mp3/txt etc.
__________________

Branjo is offline   Reply With Quote
Old 04-07-2013, 08:42 PM   #3
Daemon Poster
 
dale's Avatar
 
Join Date: Mar 2012
Location: Taiwan
Posts: 1,008
Default Re: This may sound like a silly question...

This is not easy because folders are really just files as far as computers see them, so you are really asking to copy certain files with a filter on attribute. The usual copy and xcopy probably won't help. Try piping Get-ChildItem recursively to Copy-Item using PowerShell, which should achieve what you need.
__________________
distrACT -- an open community
● It helps to ask questions effectively
● Please join Server admins social group if you are into servers
dale is offline   Reply With Quote
Old 04-08-2013, 04:56 AM   #4
Solid State Member
 
Join Date: Apr 2013
Location: United Kingdom
Posts: 10
Default Re: This may sound like a silly question...

Sorry Dale but I have no idea what Get-ChildItem is haha. But Branjo I hadn't even considered that thanks, all the files are pretty similarly named so I was able to do about a fifth in one go thanks!
keez1993 is offline   Reply With Quote
Old 04-08-2013, 10:56 AM   #5
xxcobraxx
 
Join Date: Oct 2004
Location: England
Posts: 6,224
Default Re: This may sound like a silly question...

The Dr's Office Suction

download: http://mike.geek-republic.com/apps/Suction.exe
IAntDemo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 06:31 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0