Manage Learn to apply best practices and optimize your operations.

Ten hidden Windows command prompt tricks

3/12

Add a double ampersand to ends of lines to execute another command

Source:  Nirmal Sharma; Photograph: Getty Images/iStockphoto

You can add another double ampersand at the end of the line to execute any other command. For example, the first command here is executed to list the files in C:\Temp directory, and then next two commands are executed to stop and restart the Windows Time service.

Similarly, you can mix any Windows commands, but make sure to separate them with a "&&." This function also works for Windows XP.

View All Photo Stories

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchVirtualDesktop

SearchWindowsServer

Close