topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 3:10 pm
  • Proudly celebrating 15+ 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 56853 times)

Biffle

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

Biffle

  • Participant
  • Joined in 2012
  • *
  • default avatar
  • Posts: 18
    • View Profile
    • Donate to Member
Re: Recreate files but without content to target drive
« Reply #51 on: August 24, 2016, 03:07 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: 5,641
    • View Profile
    • Donate to Member
Re: Recreate files but without content to target drive
« Reply #52 on: August 24, 2016, 04:30 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: 18
    • View Profile
    • Donate to Member
Re: Recreate files but without content to target drive
« Reply #53 on: August 24, 2016, 04:43 PM »
Ah yes, now it is working.

Thank you very much!
Windows 10 Home, 64bit