cmd inside visual basic code example
Example: visual basic cmd
' 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
' = ""
' Call Shell("cmd.exe /S /C" & , vbHide)