A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



GetCommandLine

The GetCommandLine function returns a pointer to the command-line string for the current process.

VB4-32,5,6
Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As Long

VB.NET
System.Environment.CommandLine

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Kernel32

Return Values
The return value is a pointer to the command-line string for the current process.

Last update: 07 April 2006