Powershell move files and subfolders

I can't try right now, but I think this will work (it will if you add the -force parameter that will create sub-folders if they don't exist)
PowershellMove-Item -Destination "C:\aa_Mine\test\PowershellTest\testto\$dirname\$($_.directory.name)" -force
 For each moved object, it will store it into $dirname\
 

Hello,Currently I have a batch script that moves files of a certain type from one folder to an archive folder with the current date. The script I use for this is:Batchfilefor /f "tokens=1* delims=" %%a in ('date /T') do set datestr=%%amkdir C:\ArchiveReportFiles\Archive\%date:/=%robocopy /E C:\eFinancials\report C:\ArchiveReportFiles\Archive\%date:/=% *.pdf /mov /minage:100 This works fine but it looks at the date modified not the date created so i still have files from over 2 years in there if somebody opened them by mistake, so I'm trying to recreate the the same script but using Powershell so I can use the CreationTime variable. I've got this:Powershell$dirname = "$((get-date).toString('dd-MM-yyyy'))"New-Item -ItemType directory -Path "C:\aa_Mine\test\PowershellTest\testto\$dirname"get-childitem -Path "C:\aa_Mine\test\PowershellTest...
This topic first appeared in the Spiceworks Community

Similar Messages

  • Use Automator to move files and folder structure to another folder, retaining destination contents

    I have been struggling trying to setup Automator to move files and folder structure to another folder, retaining the destination contents.  Basically, I need to add files at the destination, within the same folder structure that exists at the source.  Here's some details about the scenario:
    -I have PDF files that I create on a seperate computer than I my daily use machine
    -For security reasons, the source computer doesn't have access to any shares on the destination computer
    -The destination computer has access to shares on the source computer
    -I want to delete the original PDFs at the source after they are moved or copied
    I haven't been able to get Automator to move or copy the folder contents (files and subfolders) without dropping everything copied at the top level of the destination, resulting in many duplicate folders and a broken folder structure.
    So far I've only had luck getting this to work at the command line, but I'd really like to have this setup in Automator so that I could have either a service or application that I could use for any folder, prompting for the source and destination folders.  I'm a relatively new Mac user with limited Linux experience, so this is the command that I've cobbled together and currently accomplishes what I'm looking for:
    ditto /Volumes/SMB_Temp/SOURCE ~/Desktop/Documents/DESTINATION
    cd /Volumes/SMB_Temp/SOURCE
    find . -type f -name "*.pdf" -exec rm -f {} \;
    Thanks for any ideas!

    If you have a command-line syntax that works, why not just create an Automator workflow with a single 'Utilities -> Run Shell Script' action, where that action has your (working) shell commands?
    Seems way, way simpler to me than trying to reinvent the wheel and transcribe shell commands into individual Automator actions

  • What can I do to improve a blurry quicktime video that was SMS'd to me it is a 1.24MB .mov file and I have QuicktimePro. It was taken on an Iphone but I am not sure with what software.

    What can I do to improve a blurry Quicktime video that was SMS' texted to me? I think it was taken on an Iphone and it was sent to me as a 1.24MB .mov file and I have Quicktime Pro if that helps. I REALLY need to make this as clear as possible, the audio is good, video is blurry. Here is some additional data:

    anything I can even try? Sender is off the grid? I don't need a production ready copy just viewable?
    You can rescale (stretch) the size of the display but this will only make it blurier and/or introduce pixellation. When the file was encoded at a lower resolution much of the original data was thrown away to make the file smaller. This data is gone/missing and cannot be recreated from what is left. What you've got is all you have to work with. Any filters you can apply will require re-compressing the file again which will likely introduce more artifacts and increase the size of the file without really improving its overasll quality.

  • How to copy folder with files and subfolders within it  to another folder

    how to copy a folder with files and subfolders within it to another folder

    http://javaalmanac.com/egs/java.io/CopyDir.html?l=new

  • Hi apple users, I am in need of your expertise. I have a mov file and mp4 file which I need converted to DVD. However IDVD quality is terrible and wondering if anyone can help!?

    Hi apple users, I am in need of your expertise. I have a mov file and mp4 file which I need converted to DVD. However IDVD quality is terrible and wondering if anyone can help!?
    I created project in iMovie then exported it to MP4 and also MOV file at highest definition possible + I added it to iDVD and had a number issues about encoding errors regarding the mp4 file. MOV worked but the quality was terrible.....
    MOV file is as follows:
    4.08GB
    Codecs: H.264, ACC
    Colour Profile: HD (1-1-1)
    Dimensions: 1920 x 1080
    Duration: 12:33
    Audio Channels: 2
    MP4 File is as follows:
    3.02GB
    Codecs: H.264, ACC
    Colour Profile: HD (1-1-1)
    Dimensions: 1280 x 720
    Duration: 12:33
    Audio Channels: 6
    I have a MacBook Pro using the Yosemite system upgrade.
    I have updated iDVD and iMovie.
    I even bought the iSkysoft app from the mac store and that was terrible too.
    PLEASE HELP i am getting desperate and about to launch this macbook into the air
    2.66 GHz Intel Core i7
    Version 10.10. 2

    First of all, Hunt--thanks for responding!
    "First, where are you playing the MPEG-2, that you see that jitter?"
    On both a MacBook Pro, an Acer laptop and my Mac Tower. I would love to think that it is a problem with the playback system, and that if I merely send the file off to the duplicator they won't have the same problem. Maybe that is the case...I don't know if I have a choice rather than sending it off to see. But it happens in the same spots, in the same way, on all three of the players so I'm a little reluctant to have faith.
    "Another thing that can cause jitter in an MPEG-2 is the Bit-Rate - higher the Bit-Rate, the better the quality, but the larger the file. For a DVD, one is limited by the total Bit-Rate (both Audio & Video), but with longer prodcutions, some users choose too low a Bit-Rate. If this is the issue, one would need to go back to the original Project and do a new Export/Share."
    Of course, but in the case there is no more 'original project.' It is gone like the wind, stolen along with his computer and backups.
    I think I am stuck using one of two files as my master: a DVD he burned where I only see the stutter/vibration/jitter once, or the mpeg2 file where I see it three times. Hopefully, the duplication house can rip if off of one of them and not see the jitter. I know that in audio, my personal filed, you can do a lot to enhance already existing sound--EQ, compression, tape saturation emulation software, etc. I guess I'm hoping there is some kind of analog to the video world that address jitter after a source has been printed--if indeed the source has been printed to be jittery.
    Thanks,
    Doug

  • Songs show up as "QuickTime movie file" and won't share or sync

    I have a few mp3 audio files in iTunes that aren't being transferred to my iPod (3G) and aren't showing up when I share my iTunes library to another computer, and I can't figure out why.
    The filenames have ".mp3" extensions. When I do a 'Get Info' on them in the Finder, they're identified as "MP3 Audio File". Running 'file' on them from a Terminal window says "MP3 file with ID3 version 2.2.0 tag". They play just fine in iTunes as well as in QuickTime Player.
    But when I do a 'Get Info' on them from within iTunes, iTunes says each one is a "QuickTime movie file". And when I access this computer's shared music from iTunes on another computer on my network, everything shows up except these tracks; and when I sync my iPod, everything shows up except these tracks. I don't get any error messages.
    Why does iTunes think these songs are movie files, and how do I correct it?
    G5/1.8 Single   Mac OS X (10.4.8)  

    These files have the wrong creator.
    You can correct this by running the script on this web page.
    The page also contains information about avoiding this in the future.
    Hope this helps.
    M
    17' iMac 800 MHz, 768 MB RAM, 200 GB HD, DL burner   Mac OS X (10.4.8)   iTunes 7.0.1

  • HT1449 Can I just move my movie files and leave my music files where they are?

    Can I just move my movie files and leave my music files where they are?

    Yes, but bear in mind if you move the movie files, any files, from the iTunes media folder iTunes will not know where they are and therefore cannot access them. It will be up to you to tell iTunes were they are in order to use the files.

  • In Quicktime Pro I try to create a mov file and I get an error "-43 a file could not be found".  Any ideas?

    In Quicktime Pro I try to create a mov file and I get an error "-43 a file could not be found".  Any ideas?

    I have a similar problem which i did not have before...and it exists only in some powerpoint files which i want to print as a pdf file...and i get the same message as above.
    the log says the bellow details...what's the problem and how can i resolve it? thanks.
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    %%[Page: 2]%%
    Cambria not found, using Courier.
    %%[ Error: invalidfont; OffendingCommand: show ]%%
    Stack:
      %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%

  • When trying to move file and use command and drag, it doesn't move the file just creates a short cut.

    When trying to move file and use command and drag, it doesn't move the file just creates a short cut.

    Using command creates a copy.
    If you want to just move a file, click on it, hold it and drag it to the new location.

  • HT1014 I'm working with imovie 08 and converted movie originally from VHS tape to .m4v files imovie wouldn't recognize it.  I converted to .mov files and imovie generated thumbnails (for hours) and shows a New Event but there is nothing there. Any help?

    I'm working with imovie 08 on Macbook pro OS X and converted movie originally from VHS tape to .m4v files imovie wouldn't recognize it.  I converted to .mov files and imovie generated thumbnails (for hours) and shows a New Event but there is nothing there. Any help?

    markmc78 wrote:
    .. I'm really struggling with the concept of events/clips/projects.
    consider usage of a diff. editor.. iMovieHD6, you're entitled for a free downlaod at apple.com:
    http://www.apple.com/support/downloads/imovieHD6.html
    but IF you're relaxed, opened your mind, follow the bright light, ommmm.. for Events & Stuff:
    your intended workflow will add another step of quality-degradition (8mm>>avi>>mp4>>iM08) ..
    consider the free tool Mpeg Streamclip www.squared5.com for 'chopping' that 90min beast into pieces..
    rename these new chunks, follow advice given on my site:
    http://karsten.schluter.googlepages.com/im08changeeventdate
    there's the manual..
    http://manuals.info.apple.com/en/iMovie08_GettingStarted.pdf
    and the most recommended books from Mr Pogue's Missing Manual series..

  • To move files and Music on mp4 from an iMac to a external seagate drive 1T

    i can move files and music from the hard drive to the imac but i can't move them of the imac back to the external hard drive which is made by seagate i can't move my files or music from icloud to my external hardrive either, i have tried to download dropbox to help me but still no good can you help me please the hard drive holds 1T memory and i've had it about 2 years

    This is a forum for OS X Server software. You'll want to post this elsewhere.

  • HT3775 hello! I have downloaded a .mov file and it won't open in quicktime...any suggestions? Thanks!

    Hello! I have downloaded a .mov file and it won't open in quicktime...any suggestions? Thanks!

    get VLC player media
    it plays everything

  • Can I store Movie files and other data on my Zen Xt

    My PC HD is full of movie files and I want to free up some space. Can I move these files onto my 60GB Zen Xtra?

    When transfering large files with the MTP firmware make sure you have the patch from Microsoft otherwise the file will not transfer back from the player to the computer.
    Get it here:
    <a href='http://support.microsoft.com/default.aspx?scid=kb;en-us;89536' target=_blank>http://support.microsoft.com/default.aspx?scid=kb;en-us;89536[/url]

  • QuickTime takes forever to open larger movie files and files over network

    Quicktime 7.2 used to open files immediately, but now it stops responding for a couple minutes or more before finally opening movie files.
    Any one else having this problem?

    Worked for me as well. I had Perian already, but after downloading and installing the new version, Quicktime works perfectly now.
    Many thanks!

  • Windows 8 Compatibility issues (Quicktime .mov files and no MUSE)

    I'm bummed that Adobe Muse appears to not be compatibile with Windows 8. I just bought a new machine with 8 on it and I am trying to get used to it. So far this is a real bummer and also the fact that Quicktime (and therefore .mov files) are not compatibile either. ANY help would be great. I may be downgrading to Windows 7 if I can't find a workaround. Recommendations?
    THanks,

    Saw your original post here http://forums.adobe.com/message/4803932#4803932 and now this one.
    Moved from the Creative Cloud to the Muse forum. They will be able to help you here.
    An Adobe employee on the Muse team will be able to confirm whether or not Muse is Windows 8 compatible. It might be that the http://www.adobe.com/support/OScompatibility.html link is not up-to-date for Muse.

Maybe you are looking for