Ayuda VScript
Publicado por eddy (1 intervención) el 21/03/2006 17:01:18
Hola tengo esto codigo y me gustaria pasarto a un archivo vbs, para podere ejecutarlo desde un arichibo
Dim NFileInput As Integer
Dim NFileOutput As Integer
Dim Linea As String
NFileInput = FreeFile
Open "MiArchivoInput" For Input As #NFileInput
NFileOutput = FreeFile
Open "MiArchivoOutput" For Output As #NFileOutput
Do Until EOF(NFileInput)
Line Input #NFileInput, Linea
If InStr(Linea, "%(TID:%):%IMAP4%") <> 0 Or InStr(Linea,
"%(TID:%):%LOGIN%") <> 0 Then
Print #NFileOutput, Linea
End If
Loop
Close #NFileInput, #NFileOutput
Dim NFileInput As Integer
Dim NFileOutput As Integer
Dim Linea As String
NFileInput = FreeFile
Open "MiArchivoInput" For Input As #NFileInput
NFileOutput = FreeFile
Open "MiArchivoOutput" For Output As #NFileOutput
Do Until EOF(NFileInput)
Line Input #NFileInput, Linea
If InStr(Linea, "%(TID:%):%IMAP4%") <> 0 Or InStr(Linea,
"%(TID:%):%LOGIN%") <> 0 Then
Print #NFileOutput, Linea
End If
Loop
Close #NFileInput, #NFileOutput
Valora esta pregunta


0