Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 03, 2016, 07:46:23 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Recreate files but without content to target drive  (Read 27495 times)

Biffle

  • Participant
  • Joined in 2012
  • *
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
Re: Recreate files but without content to target drive
« Reply #50 on: August 24, 2016, 02:54:24 PM »
Thank you very much, vixay!
Windows 10 Home, 64bit

Biffle

  • Participant
  • Joined in 2012
  • *
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
Re: Recreate files but without content to target drive
« Reply #51 on: August 24, 2016, 03:07:41 PM »
Looks complicated. Hmmm, where could I find this python script?

Just use RoboCopy (included with Windows):

robocopy <source> <dest> /CREATE /E /np /nfl /ndl /njh /njs

It'll do it in a few seconds.

Yes, indeed, that's great, many thanks!

But it obviously doesn't work with paths containing a space or "ü", "ä", etc.
For example it does not work with:
robocopy C:\den Lw C\Vorübergehend\FileBot C:\den Lw C\Vorübergehend\test /CREATE /E /np /nfl /ndl /njh /njs

Is there a way to make it work with those characters, spaces?

Thank you very much again.
Windows 10 Home, 64bit

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,471
    • View Profile
    • Donate to Member
Re: Recreate files but without content to target drive
« Reply #52 on: August 24, 2016, 04:30:04 PM »
As always, you need to enclose paths with spaces in quotes, eg. "C:\this is a path"

robocopy "C:\den Lw C\Vorübergehend\FileBot" "C:\den Lw C\Vorübergehend\test" /CREATE /E /np /nfl /ndl /njh /njs

Biffle

  • Participant
  • Joined in 2012
  • *
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
Re: Recreate files but without content to target drive
« Reply #53 on: August 24, 2016, 04:43:49 PM »
Ah yes, now it is working.

Thank you very much!
Windows 10 Home, 64bit