ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Recreate files but without content to target drive

<< < (11/11)

Biffle:
Thank you very much, vixay!

Biffle:
Looks complicated. Hmmm, where could I find this python script?-Biffle (August 16, 2016, 05:40 AM)
--- End quote ---

Just use RoboCopy (included with Windows):

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

It'll do it in a few seconds.
-4wd (August 16, 2016, 09:31 PM)
--- End quote ---

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.

4wd:
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:
Ah yes, now it is working.

Thank you very much!

Navigation

[0] Message Index

[*] Previous page

Go to full version