Three really useful additions are the Forward Slash + K Switch :: /k :: allowing command(s) to be RUN directly from the RUN box , the Double Ampersand :: && :: for joining commands together and the Greater Than Sign :: > :: for outputting data to a file:
Example of /k switch
cmd /k ipconfig /all
Will display the ipconfig info, from the RUN box, without having to launch to CLI initially.
Secondly is the &&, allow concatenating (joining) of commands.
Example of &&
cmd /k cd \ && md foo && cd foo && md apps backups drivers && md backups && md "Ccleaner Backups"
Launch cmd.exe and change directory to root of C:\ ; make a directory at root of c named foo; change directory to foo and make directories apps, backups and drivers, change directory to backups and create a Directory call Ccleaner Backups.
Outputting CMD results to text File
Example of using > symbol to ouput results to a text file.
cmd /k cd "program files" > C:\My_progs_list.txt
Creates a list of instaled programs in a text file named My_progs_list in C:\ Drive
cmd /k ping 184.108.40.206 -t > C:\PINGTEST.txt
outputs a continuous ping test to the text file.
( No results appear in the CLI/CMD box while this is running).
[ To STOP or CANCEL the command : control + C].
And result can be viewed through opening the saved text file at C:\PINGTEST
Good L.U.C.K = L abouring U nder C orrect K nowledge