so, da as nicht geht mit dem loop points, habe ich es in BAT datei geschrieben, aber shell will nicht die BAT öffnen, da kommt fehlermeldung, das adxencd.exe nicht gefunden werden kann -.- warumm geht das nicht, was gibt es für lösungen???
das ganze sieht momentan so aus:
Private Sub Command2_Click()
End
End Sub
Private Sub Command1_Click()
'Shell ("adxencd.exe wave.wav adxfile.adx " & "-lps" & lps.Text & " -lpe" &
' lpe.Text)
Dim A As Integer
A = FreeFile
Open App.Path & "\zz.bat" For Output As #A
Print #A, "adxencd.exe wave.wav adxfile.adx -lps" + lps.Text + " -lpe" + _
lpe.Text;
Close A
Shell "\zz.bat", vbNormalFocus
End Sub
Private Sub Command3_Click()
Form2.Show
End Sub
'=========== SAVE LOOP FILE ===========
Private Sub Command4_Click()
Dim Fn As Integer
On Error Resume Next
With CommonDialog1
.CancelError = True
.Flags = cdlOFNOverwritePrompt
.Filter = "ADX Loop file (*.lpf)|*.lpf"
.ShowSave
If .FileName <> "" Then
Fn = FreeFile
Open .FileName For Output As #Fn
Print #Fn, lps.Text
Print #Fn, lpe.Text;
Close #Fn
End If
End With
End Sub
'=== OPEN LOOP FILE ===
Private Sub Command5_Click()
Dim F As Integer
Dim lpe1 As String
Dim lps2 As String
lps.Text = ""
lpe.Text = ""
On Error Resume Next
With CommonDialog2
.CancelError = True
.Filter = "ADX Loop file (*.lpf)|*.lpf"
.ShowOpen
If .FileName <> "" Then
F = FreeFile
Open .FileName For Input As #F
Do Until EOF(F)
Line Input #F, lps2
Line Input #F, lpe1
lps.Text = lps2
lpe.Text = lpe1
Loop
Close #F
End If
End With
End Sub
Private Sub Command6_Click()
Form3.Show
End Sub
Private Sub lps_KeyPress(KeyAscii As Integer)
If InStr("1234567890" & Chr$(8), Chr$(KeyAscii)) = 0 Then
KeyAscii = 0
End If
End Sub
Private Sub lpe_KeyPress(KeyAscii As Integer)
If InStr("1234567890" & Chr$(8), Chr$(KeyAscii)) = 0 Then
KeyAscii = 0
End If
End SubMein Problem ist hier:
Dim A As Integer
A = FreeFile
Open App.Path & "\zz.bat" For Output As #A
Print #A, "adxencd.exe wave.wav adxfile.adx -lps" + lps.Text + " -lpe" + _
lpe.Text;
Close A
Shell "\zz.bat", vbNormalFocus Sobald ich die lpf die werte in Textboxen lade, erscheint folgende meldung in der konsole: Der Befehl "adxencd.exe" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Wenn ich die lpf dateien nicht öffne, funktionierts ganz normal.
woran liegt das?
EDIT://
wenn ich in die Textbox schreibe z.b.
in box lpe 123 und lps 1234 funktioniert es nur es geht nicht wenn ich die lpf datei lade mit commdlg
Beitrag wurde zuletzt am 14.04.08 um 21:59:11 editiert. |