Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Guides
Programming Guides & Questions
Please help with batch files
Message
<blockquote data-quote="Decopi" data-source="post: 1044974" data-attributes="member: 67091"><p>I had a great help in other forum. I almost solved 99% of my needs. I share with you here, in case is useful to someone:</p><p></p><p>This batch will format F: (more efficient and fast than command delete). Then it will copy everything inside E: (except Folder One and Folder Two) to F:</p><p>@echo off</p><p>Format F: /FS:NTFS /V:NAME /Q /X /y</p><p>robocopy.exe E:\ F:\ *.* /mir /XD "Folder One" "Folder Two" /copy<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite116" alt=":D" title="Big grin :D" loading="lazy" data-shortname=":D" />AT /dcopy<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite116" alt=":D" title="Big grin :D" loading="lazy" data-shortname=":D" />A /r:0 /v /xj /mt:32</p><p></p><p>And this batch will copy everything inside I: (except Folder One and Folder Two) and then it will copy to J:</p><p>This batch is amazing because only pastes (at J<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite109" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> new or changed files.</p><p>@%SystemRoot%\System32\robocopy.exe I:\ J:\ /E /MIR /MT:32 /NDL /NFL /NJH /NJS /R:0 /XJ /XD "I:\Folder One" "I:\Folder Two"</p><p></p><p>Another different version:</p><p>@echo off</p><p>md J:\empty</p><p>robocopy /mir J:\empty J:\ /xd "Folder One" "Folder Two"</p><p>robocopy.exe I:\ J:\ *.* /mir /XD "Folder One" "Folder Two" /copy<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite116" alt=":D" title="Big grin :D" loading="lazy" data-shortname=":D" />AT /dcopy<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite116" alt=":D" title="Big grin :D" loading="lazy" data-shortname=":D" />A /r:0 /v /xj /mt:32</p><p></p><p>All batches are tested and working like a charm.</p><p>Hope it'll help.</p></blockquote><p></p>
[QUOTE="Decopi, post: 1044974, member: 67091"] I had a great help in other forum. I almost solved 99% of my needs. I share with you here, in case is useful to someone: This batch will format F: (more efficient and fast than command delete). Then it will copy everything inside E: (except Folder One and Folder Two) to F: @echo off Format F: /FS:NTFS /V:NAME /Q /X /y robocopy.exe E:\ F:\ *.* /mir /XD "Folder One" "Folder Two" /copy:DAT /dcopy:DA /r:0 /v /xj /mt:32 And this batch will copy everything inside I: (except Folder One and Folder Two) and then it will copy to J: This batch is amazing because only pastes (at J:) new or changed files. @%SystemRoot%\System32\robocopy.exe I:\ J:\ /E /MIR /MT:32 /NDL /NFL /NJH /NJS /R:0 /XJ /XD "I:\Folder One" "I:\Folder Two" Another different version: @echo off md J:\empty robocopy /mir J:\empty J:\ /xd "Folder One" "Folder Two" robocopy.exe I:\ J:\ *.* /mir /XD "Folder One" "Folder Two" /copy:DAT /dcopy:DA /r:0 /v /xj /mt:32 All batches are tested and working like a charm. Hope it'll help. [/QUOTE]
Insert quotes…
Verification
Post reply
Top