Previous Topic: Argc - Return the Number of Arguments Passed to the ScriptNext Topic: ChDir or SetDirectory - Change or Set a Directory


Argv - Returns a String Containing the nth Script Argument

Valid on UNIX and Windows

The Argv function returns a string containing the nth script argument. argv(0) is the name of the script.

Function format:

Argv(n as Integer) as String
n

Index to argument

The return value is a string that contains the nth script argument.

Example:

Dim i as Integer
For i = 0 To argc() - 1
	Print(argv(i))
Next i