devxlogo

Executing Programs Stored in Variables

Executing Programs Stored in Variables

Question:
Is it possible to store a MS-DOS pathname in avariable, and run the program at that path withthe shell command?

Answer:
The Shell command can be given a string directly or one that is in a variable. i.e.

Dim s as StringDim ret as integers = “COMMAND.COM”ret = Shell(s)

devx-admin

Share the Post: