set test=hello & call echo %test%
Saturday, January 05, 2013
To sequence one command after another one can use & to do it. For example:
set test="hello" sets the value and call echo %test% shows the result to the standard output. Note also the use of call instruction, that forces the interpreter to re-interpret echo otherwise it will not see changes made.
Subscribe to:
Post Comments (Atom)
CPP Quick Guide
Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...
-
Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: Th...
-
Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed pro...
-
Minimal OPC UA client that auto generates self signed certificate on startup in C# This is minimal OPC UA client in C# that demonstrates se...
No comments:
Post a Comment