📜  visual basic msdos - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:57.242000             🧑  作者: Mango

代码示例1
' 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)