Vb Run Command

[Solved] Vb Run Command | Vb - Code Explorer | yomemimo.com
Question : vb run command

Answered by : jacques-kirstein

' For VBA / VB / Visual Basic only
'EXAMPLE sCommandToRun = "copy ""InitialName.xls"" ""NewName.txt"" " 'NOTE: The "" above is the equivalent of " in the command prompt Call Shell("cmd.exe /S /C" & sCommandToRun, vbHide)
'SYNTAX
'	<your-variable-name> = "<MSDos-command-you-want-to-run>"
'	Call Shell("cmd.exe /S /C" & <your-variable-name>, vbHide)

Source : | Last Update : Wed, 03 Jun 20

Answers related to vb run command

Code Explorer Popular Question For Vb