Answers for "visual basic cmd"

0

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
'	<your-variable-name> = "<MSDos-command-you-want-to-run>"
'	Call Shell("cmd.exe /S /C" & <your-variable-name>, vbHide)
Posted by: Guest on May-27-2020

Code answers related to "BASIC"

Browse Popular Code Answers by Language