Site Search:
Sign in | Join | Help
4Penny.net

Steve Gray

Random Thoughts from the 4Penny VP of Development

Simple DOS commands

Every now and again I'll need to write a simple DOS bat file to accomplish a task... here are a few of the commands that I use. It's much easier to blog them here and have them than to search the internet for them.

Copy a file from one directory to another:
XCOPY source destination /Y /D /S

Append one file to another:
type source >> destination

Add a CR to a file:
echo. >> filename

 

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add

About Steve Gray

Steve is a seasoned (translate: old) developer in VB and ASP.NET. He spends most of his time in Dynamics GP, writing custom mods for consulting firms. Crystal reports, eConnect, VS Tools for Dynamics... anything that comes along.