► Afficher le texte
Code : Tout sélectionner
$vrUrlFTP = InputBox("URL FTP", "Entrez ici votre adresse FTP:", "", "")
If $vrUrlFTP = "" Then
MsgBox(0,"Info","Vous n'avez pas entrer l'url FTP, abandon de la connexion")
exit
Else
Endif
$vrNamUser = InputBox("Nom d'utisisateur", "Entrez ici votre nom d'utilisateur FTP:", "", "")
If $vrNamUser = "" Then
MsgBox(0,"Info","Vous n'avez pas entrer le nom d'utilisateur FTP, abandon de la connexion")
exit
Else
Endif
$vrPassword = InputBox("Password", "Entrez ici votre mot de passe FTP:", "", "")
If $vrPassword = "" Then
MsgBox(0,"Info","Vous n'avez pas entrer le mot de passe FTP, abandon de la connexion")
exit
Else
Endif
$vrPort = InputBox("Password", "Entrez ici votre port FTP: laisser vide si 21", "", "")
if $vrPort = "" Then $vrPort = "21"
$file_index = FileOpen($vrNamUser & ".bat", 2)
FileWriteLine($file_index, "explorer.exe ftp://" & $vrNamUser & ':' & $vrPassword & '@' & $vrUrlFTP & ':' & $vrPort)
FileClose($file_index)
RunWait("explorer.exe ftp://" & $vrNamUser & ':' & $vrPassword & '@' & $vrUrlFTP & ':' & $vrPort)