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="quentisa" data-source="post: 1049083" data-attributes="member: 98424"><p>here you go:</p><p></p><p>[CODE]@echo off</p><p>rem Deleting everything in X1 except System Volume Information and $RECYCLE.BIN</p><p>cd /d X1:\</p><p>rmdir /s /q "X1:\Folder1"</p><p>rmdir /s /q "X1:\Folder2"</p><p>rem Copying everything from X2 to X1</p><p>cd /d X2:\</p><p>xcopy /s /e /exclude:X2:\exclude.txt X1:\[/CODE]</p></blockquote><p></p>
[QUOTE="quentisa, post: 1049083, member: 98424"] here you go: [CODE]@echo off rem Deleting everything in X1 except System Volume Information and $RECYCLE.BIN cd /d X1:\ rmdir /s /q "X1:\Folder1" rmdir /s /q "X1:\Folder2" rem Copying everything from X2 to X1 cd /d X2:\ xcopy /s /e /exclude:X2:\exclude.txt X1:\[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Top