Been using that for years. Most *nix shells use that exact same syntax. Pick up a copy of "Windows NT Shell Scripting", by Tim Hill. http://www.amazon.com/Windows-Shell-Scripting-Timothy-Hill/dp/1578700477/
It's from 1998, but still a worthwhile reference. For instance, I can never remember the syntax for redirecting stderr and stdout at the command line, and have that page bookmarked (it's on page 55: C:\>dir >c:\temp\out.txt 2>&1) Kurt On Mon, Aug 13, 2012 at 2:11 PM, David Lum <[email protected]> wrote: > Restarting the time service with this one line of code: net stop w32time && > net start w32time > > > > I never knew about the && trick on the command like being able to run > multiple lines of code on one “line” in a command prompt. This even works > for ipconfig /release ipconfig /renew. Previously if I have to release/renew > on a machine I was remoted in to I’d create a batch file and then run the > batch file – this little trick saves me a step! > > David Lum > Systems Engineer // NWEATM > Office 503.548.5229 // Cell (voice/text) 503.267.9764 > > > > > > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ > ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ > > --- > To manage subscriptions click here: > http://lyris.sunbelt-software.com/read/my_forums/ > or send an email to [email protected] > with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
