Thursday 31 May 2018

Execute multiple commands with 1 line in Windows commandline?


How can I execute multiple commands in the Windows commandline with just a single line?


So for example say I want to perform an SVN update and then copy all of the files to another location...


svn update; copy *.* c:\development\copy\

That doesn't work obviously. Is there a character or delimiter like ';' to perform something like this?



Answer



Yes there is. It's &.


&& will execute command 2 when command 1 is complete providing it didn't fail.


& will execute regardless.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...