ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó°õ¦æ A.exe?

[µo°Ý] ¦p¦ó°õ¦æ A.exe?

¥»©«³Ì«á¥Ñ yangjie ©ó 2014-12-5 02:09 ½s¿è

½Ð±Ð½Ñ¦ì¤j¤j:
§Ú¥ÎVB ¼g¤F¤pµ{¦¡ Âন°õ¦æÀÉ A.exe ©ñ¦b
»Pworkbook¦P¼hB¸ê®Æ§¨¤º
¦bworkbookùØ,­n¥ÎVBA¨Ó°õ¦æ A.exe

Sub Test()
    path1 = ThisWorkbook.Path
    AppActivate Shell(path1 & "\B\"  &   "A.exe")
End Sub
µ²ªG ¬O§ä¤£¨ìÀÉ®×
¦ý¥Î
    Dim fso, As Object
    Set fso = CreateObject("Scripting.FileSystemObject")
    If fso.FileExists(path1 & "\B\" &  "A.exe") Then
         msgbox "OK"
    End If
«o ¦s¦bOK  ¦ýµLªk°õ¦æ ¦]¬°§ä¤£¨ìÀÉ®×
À³¦p¦ó­×¥¿»yªk?
ÁÂÁ«ü¾É

¦^´_ 1# yangjie
¦b¦UºØ¿ù»~¤¤¾Ç²ß
Sub test()
    Dim path1 As String
    path1 = ThisWorkbook.Path & "\" & "¸ê®Æ®w"
    ChDir path1
    Dim myret As Long
    myret = Shell("B.exe", 1)
    AppActivate myret
End Sub
´NOK¤F

TOP

        ÀR«ä¦Û¦b : ¤f»¡¦n¸Ü¡B¤ß·Q¦n·N¡B¨­¦æ¦n¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD