Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: DOS equivalent for unix semi-colon to execute multiple commands  (Read 13374 times)

0 Members and 1 Guest are viewing this topic.

jfmlifer

  • Guest
DOS equivalent for unix semi-colon to execute multiple commands
« on: October 29, 2007, 12:48:35 PM »
What is the DOS equivalent for the *nix semi-colon that enables two commands to execute.
For example, in unix/linux --   cd /home;ls -- changes to the home folder, then executes the list command (ls).

So, what is the DOS look-alike syntax -- CD \HOME xxx DIR where xxx is the replacement syntax...

contrex

  • Guest
Re: DOS equivalent for unix semi-colon to execute multiple commands
« Reply #1 on: October 29, 2007, 01:36:20 PM »
Pure MS-DOS does not have such a thing, but in NT family command prompt, i.e. Windows 2000, XP, Vista, you have the ampersand, &.

cd \home&DIR&echo hello&pause&cls