- You can enter multi-line commands by pressing shift-enter.
- You can include special variables above your commands to control how the command is processed.
- #!ps <- Will execute all commands below using Powershell.exe instead of CMD.exe. (Will use 32-bit PowerShell, even on a 64-bit OS)
- #!cmd <- Apparently that is also supported.
- #maxlength=X <- Specify how many bytes the command can return.
- #timeout=X <- Specify command timeout in milliseconds. -1 is for a very long time.
- You can always execute as 64-bit on 64-bit systems if you prefix your command with: "%windir%\sysnative\cmd.exe /c "
- Alternately, for 64-bit powershell you can call it as "%windir%\sysnative\WindowsPowerShell\v1.0\powershell.exe"
Using sysnative only works when you are in a 32 bit environment on a 64 bit OS. The folder does not exist when you are in a native 64 bit environment.
Other Tips? Share them!