Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
'в самом начале
..............................
Sub funGetDosText()
dim s as string
Shell "c:\chujaya_proga.exe > c:\vremenniy_fail.txt"
Sleep 1000
open "c:\vremenniy_fail.txt" for input as #1
s = input$(lof(1),#1)
close #1
....
End Sub
s = Chr$(34) & s_exe & Chr$(34) & " " & Chr$(34) & s_php & s_qs & Chr$(34) & " > " & Chr$(34) & s_htm & Chr$(34)
i = FreeFile
Open s_bat For Output As #i
Print #i, s
Close #i
Call funRunAndWaitEnding(s_bat, s_process) 'делает ясно что.
i_Navigate = 1
f1.w.Navigate (s_htm)
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
.....
Private Sub Command1_Click()
Dim s As String
Dim I As String
I = "c:\1\avrasm32.exe -fI 111.asm > c:\1\err.txt"
Shell I
Sleep 3000
Open "c:\1\err.txt" For Input As #1
s = Input$(LOF(1), #1)
Close #1
RTBedit.Text = s + I
End Sub
I = chr$(34) & "c:\1\avrasm32.exe -fI 111.asm" & chr$(34) & " > c:\1\err.txt"
dim i_ff as integer
open "c:\1\temp_prog.bat" for output as #i_ff
print #i_ff, I
close #i_ff
shell "c:\1\temp_prog.bat"
Shell I
i = FreeFile
Open s_bat For Output As #i
Print #i, s
Close #i
Private Sub Command1_Click()
Dim s As String
Dim I As String
I = "c:\1\avrasm32.exe -fI c:\1\111.asm > c:\1\err.txt"
Open "c:\1\temp_prog.bat" For Output As #1
Print #1, I
Close #1
Shell "c:\1\temp_prog.bat"
RTBedit.Text = I
End Sub
Shell "c:\1\temp_prog.bat", vbHide
AjaxVS писал(а):Во-вторых, почему не будет работать? Че, апечятался где то? У меня работает. И я очень доволен результатами.
Грубость - это нормально (c) CSerg
Сейчас этот форум просматривают: AhrefsBot, Google-бот и гости: 35