Q. How do I run multiple commands on the Windows command-line?
A. Simple. All you do is separate each command with the ampersand (&) symbol.
For example:
copy file1.txt file2.txt & del file1.txt
copies file1.txt to file2.txt and then deletes file1.txt – fairly useless but it does show how the ampersand works. Note that the second command only runs after the first one is complete.
But if you’re looking for a simple way to run multiple commands on the Windows command-line, this is it.
Similar Posts:
- ToneShop will be returning shortly
- Simple Vista Tip – Get command-line access in current Explorer folder
- Quick Tip: Windows 7′s Open Command Prompt Here
- Back up your software discs
- Adding Simple Video Converter to Windows XP
- Q&A – How do I get movies onto a USB flash drive?
- PC User PerfectPC update – April 2009 issue
- 10 free RAW image tools for Linux
- Windows 7 – use your common sense!
- 10 free photo/image tools for Linux
