eg
~
Options
/C Run
Command and then terminate
/K Run
Command and then return to the CMD prompt.
This is useful for testing, to examine variables
Command : The command, program or batch script to be run.
This can even be several commands separated with '
&'
(the whole should also be surrounded by "quotes")
/T:
fg Sets the foreground/background
colours /A Output ANSI characters
/U Output UNICODE characters (UCS-2 le)
These options will affect
piping or redirecting to a file.
Most common text files are ANSI, use these switches
when you need to convert the character set.
/D Ignore registry AutoRun commands
HKLM | HKCU \Software\Microsoft\Command Processor\AutoRun
/E:ON Enable CMD Command Extensions (default)
/X Enable CMD Command Extensions (old switch for compatibility)
/E:OFF Disable CMD Command Extensions
/Y Disable CMD Command Extensions (old switch for compatibility)
/F:ON Enable auto-completion of pathnames entered at the CMD prompt
/F:OFF Disable auto-completion of pathnames entered at the CMD prompt (default)
~
At the command prompt Ctrl-D gives fol
der name completion and Ctrl-F gives
File and folder name completion.
These key-strokes will display the first matching path. Thereafter, repeated pressing of the same control key will cycle through the list of matching paths. Pressing SHIFT with the control key will move through the list backwards.
/Q Turn echo off
/S Strip " quote characters from
command.
If
command starts with a quote, the first and last quote chars in
command will be removed, whether /s is specified or not.
/V:ON Enable
delayed environment variable expansion this allows a FOR loop to specify !variable! instead of %variable%
expanding the variable at execution time instead of at input time.
Net Use Command Syntaxnet use [{
devicename |
*}] [
\\computername\sharename[
\volume] [{
password |
*}]] [
/user:[
domainname\]
username] [
/user:[
dotteddomainname\]
username] [
/user:[
username@dotteddomainname] [
/home {
devicename |
*} [{
password |
*}]] [
/persistent:{
yes |
no}] [
/smartcard] [
/savecred] [
/delete] [
/help] [
/?]
View attachment 1493575Its very boring stuff,
and you need glasses,and no silly typing stuff.