How to move hidden folders with move command in a batch file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yoda
    Contributor
    • Dec 2006
    • 291

    How to move hidden folders with move command in a batch file?

    As the title suggests i'm trying to move a hidden folder with a batch file, but i get a Access Denied error, and i'm admin to the computer so i'm very confused, so if someone could help me that would be excellent.

    Thanks,

    Yoda

    Here's code:
    Code:
    xcopy/s "C:\Documents and Settings\%username%" "E:\Documents and Settings\%username%"
    
    move /y "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Outlook" "E:\Documents and Settings\%username%\Archieved"
    
    pause
  • yoda
    Contributor
    • Dec 2006
    • 291

    #2
    Never mind figured it out. All you have to do if the folder your moving from or a folder in the path is hidden do a \*.* for the folder your looking for example.

    Code:
     move /y "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Outlook\*.*"
    You have do do this because in my example Local Settings is a hidden folder so you have to do the *.* thing in outlook to move the files in that folder to some where.

    I hope this helps someone!

    Yoda

    Comment

    Working...