Je cherche à effectuer dans un classeur une connection via FTP sur une
machine distante avec la récupération d'un fichier et ainsi le
formater.
Ce qu'il me manque c'est comment m'y prendre pour l'aspect FTP.
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Daniel
Comme je vois que tu n'as pas de réponse, je te joins la réponse trouvée dans les archives de EXCEL-L. C'est malheureusement en anglais. Si tu as des problèmes de traduction, fais-moi signe. The "Shell" command allows you to write a DOS command. In this case:
Sub FTP_exec() Shell ("ftp -v -s:" & ThisWorkbook.Path & "hc.txt" & " " & "150.0.0.2") End sub
ftp 'Uses the FTP command, NOTE you must have it installed it 'ususally comes installed but make sure it it in the 'Windows catalog. -v 'A flag that is necessary -s:" & ThisWorkbook.Path & "hc.txt" 'Gives the path to the textfile with the commands. This 'may be changed in any way you like. 150.0.0.2 'IP number to the server you want. NOTE don't forget the 'blank SPACE between the path and the IP.
the hc.txt file contains e.g.:
anonymous 'Login ID anonymous 'Password cd pubhelp 'Path to file lcd C:ProgramsExcel 'Path where you want the file get news.txt 'Get the file from the server bye 'Quits the FTP-Session
The commands are the FTP commands just as in an ordinary session.
To see other commands simply type: ftp help bye
on the DOS promt.
Daniel "!ssorp" a écrit dans le message de news:
Bonjour,
Je cherche à effectuer dans un classeur une connection via FTP sur une machine distante avec la récupération d'un fichier et ainsi le formater. Ce qu'il me manque c'est comment m'y prendre pour l'aspect FTP.
merci à tous et à toutes
!ss0rp
Comme je vois que tu n'as pas de réponse, je te joins la réponse trouvée
dans les archives de EXCEL-L. C'est malheureusement en anglais. Si tu as des
problèmes de traduction, fais-moi signe.
The "Shell" command allows you to write a DOS command. In this case:
Sub FTP_exec()
Shell ("ftp -v -s:" & ThisWorkbook.Path & "hc.txt" & " " & "150.0.0.2")
End sub
ftp 'Uses the FTP command, NOTE you must
have it installed it
'ususally comes installed but make
sure it it in the
'Windows catalog.
-v 'A flag that is necessary
-s:" & ThisWorkbook.Path & "hc.txt" 'Gives the path to the textfile with
the commands. This
'may be changed in any way you like.
150.0.0.2 'IP number to the server you want.
NOTE don't forget the
'blank SPACE between the path and
the IP.
the hc.txt file contains e.g.:
anonymous 'Login ID
anonymous 'Password
cd pubhelp 'Path to file
lcd C:ProgramsExcel 'Path where you want the file
get news.txt 'Get the file from the server
bye 'Quits the FTP-Session
The commands are the FTP commands just as in an ordinary session.
To see other commands simply type:
ftp
help
bye
on the DOS promt.
Daniel
"!ssorp" <issorp@noos.fr> a écrit dans le message de news:
ea632579.0501120517.4765f2d6@posting.google.com...
Bonjour,
Je cherche à effectuer dans un classeur une connection via FTP sur une
machine distante avec la récupération d'un fichier et ainsi le
formater.
Ce qu'il me manque c'est comment m'y prendre pour l'aspect FTP.
Comme je vois que tu n'as pas de réponse, je te joins la réponse trouvée dans les archives de EXCEL-L. C'est malheureusement en anglais. Si tu as des problèmes de traduction, fais-moi signe. The "Shell" command allows you to write a DOS command. In this case:
Sub FTP_exec() Shell ("ftp -v -s:" & ThisWorkbook.Path & "hc.txt" & " " & "150.0.0.2") End sub
ftp 'Uses the FTP command, NOTE you must have it installed it 'ususally comes installed but make sure it it in the 'Windows catalog. -v 'A flag that is necessary -s:" & ThisWorkbook.Path & "hc.txt" 'Gives the path to the textfile with the commands. This 'may be changed in any way you like. 150.0.0.2 'IP number to the server you want. NOTE don't forget the 'blank SPACE between the path and the IP.
the hc.txt file contains e.g.:
anonymous 'Login ID anonymous 'Password cd pubhelp 'Path to file lcd C:ProgramsExcel 'Path where you want the file get news.txt 'Get the file from the server bye 'Quits the FTP-Session
The commands are the FTP commands just as in an ordinary session.
To see other commands simply type: ftp help bye
on the DOS promt.
Daniel "!ssorp" a écrit dans le message de news:
Bonjour,
Je cherche à effectuer dans un classeur une connection via FTP sur une machine distante avec la récupération d'un fichier et ainsi le formater. Ce qu'il me manque c'est comment m'y prendre pour l'aspect FTP.
merci à tous et à toutes
!ss0rp
-=lolol=-
Bonjour Daniel il y a exemple sur excelabo (évidement) dans la zone "formation php" le classeur se connecte à une base mysql mais se connecte aussi en ftp je crois ... cordialement @+lolo
Comme je vois que tu n'as pas de réponse, je te joins la réponse trouvée dans les archives de EXCEL-L. C'est malheureusement en anglais. Si tu as des problèmes de traduction, fais-moi signe. The "Shell" command allows you to write a DOS command. In this case:
Sub FTP_exec() Shell ("ftp -v -s:" & ThisWorkbook.Path & "hc.txt" & " " & "150.0.0.2") End sub
ftp 'Uses the FTP command, NOTE you must have it installed it 'ususally comes installed but make sure it it in the 'Windows catalog. -v 'A flag that is necessary -s:" & ThisWorkbook.Path & "hc.txt" 'Gives the path to the textfile with the commands. This 'may be changed in any way you like. 150.0.0.2 'IP number to the server you want. NOTE don't forget the 'blank SPACE between the path and the IP.
the hc.txt file contains e.g.:
anonymous 'Login ID anonymous 'Password cd pubhelp 'Path to file lcd C:ProgramsExcel 'Path where you want the file get news.txt 'Get the file from the server bye 'Quits the FTP-Session
The commands are the FTP commands just as in an ordinary session.
To see other commands simply type: ftp help bye
on the DOS promt.
Daniel "!ssorp" a écrit dans le message de news:
Bonjour,
Je cherche à effectuer dans un classeur une connection via FTP sur une machine distante avec la récupération d'un fichier et ainsi le formater. Ce qu'il me manque c'est comment m'y prendre pour l'aspect FTP.
merci à tous et à toutes
!ss0rp
Bonjour Daniel
il y a exemple sur excelabo (évidement) dans la zone "formation php" le
classeur se connecte à une base mysql mais se connecte aussi en ftp je crois
...
cordialement
@+lolo
Comme je vois que tu n'as pas de réponse, je te joins la réponse
trouvée dans les archives de EXCEL-L. C'est malheureusement en
anglais. Si tu as des problèmes de traduction, fais-moi signe.
The "Shell" command allows you to write a DOS command. In this case:
Sub FTP_exec()
Shell ("ftp -v -s:" & ThisWorkbook.Path & "hc.txt" & " " &
"150.0.0.2") End sub
ftp 'Uses the FTP command, NOTE
you must have it installed it
'ususally comes installed but
make sure it it in the
'Windows catalog.
-v 'A flag that is necessary
-s:" & ThisWorkbook.Path & "hc.txt" 'Gives the path to the
textfile with the commands. This
'may be changed in any way you
like. 150.0.0.2 'IP number to the
server you want. NOTE don't forget the
'blank SPACE between the path
and the IP.
the hc.txt file contains e.g.:
anonymous 'Login ID
anonymous 'Password
cd pubhelp 'Path to file
lcd C:ProgramsExcel 'Path where you want the file
get news.txt 'Get the file from the server
bye 'Quits the FTP-Session
The commands are the FTP commands just as in an ordinary session.
To see other commands simply type:
ftp
help
bye
on the DOS promt.
Daniel
"!ssorp" <issorp@noos.fr> a écrit dans le message de news:
ea632579.0501120517.4765f2d6@posting.google.com...
Bonjour,
Je cherche à effectuer dans un classeur une connection via FTP sur
une machine distante avec la récupération d'un fichier et ainsi le
formater.
Ce qu'il me manque c'est comment m'y prendre pour l'aspect FTP.
Bonjour Daniel il y a exemple sur excelabo (évidement) dans la zone "formation php" le classeur se connecte à une base mysql mais se connecte aussi en ftp je crois ... cordialement @+lolo
Comme je vois que tu n'as pas de réponse, je te joins la réponse trouvée dans les archives de EXCEL-L. C'est malheureusement en anglais. Si tu as des problèmes de traduction, fais-moi signe. The "Shell" command allows you to write a DOS command. In this case:
Sub FTP_exec() Shell ("ftp -v -s:" & ThisWorkbook.Path & "hc.txt" & " " & "150.0.0.2") End sub
ftp 'Uses the FTP command, NOTE you must have it installed it 'ususally comes installed but make sure it it in the 'Windows catalog. -v 'A flag that is necessary -s:" & ThisWorkbook.Path & "hc.txt" 'Gives the path to the textfile with the commands. This 'may be changed in any way you like. 150.0.0.2 'IP number to the server you want. NOTE don't forget the 'blank SPACE between the path and the IP.
the hc.txt file contains e.g.:
anonymous 'Login ID anonymous 'Password cd pubhelp 'Path to file lcd C:ProgramsExcel 'Path where you want the file get news.txt 'Get the file from the server bye 'Quits the FTP-Session
The commands are the FTP commands just as in an ordinary session.
To see other commands simply type: ftp help bye
on the DOS promt.
Daniel "!ssorp" a écrit dans le message de news:
Bonjour,
Je cherche à effectuer dans un classeur une connection via FTP sur une machine distante avec la récupération d'un fichier et ainsi le formater. Ce qu'il me manque c'est comment m'y prendre pour l'aspect FTP.
merci à tous et à toutes
!ss0rp
Daniel
Bonjour. C'est vrai, mais je suis nouveau ici, j'ai pas encore le réflexe Excelabo. Daniel "-=lolol=-" a écrit dans le message de news: OF%23%23P8K%
Bonjour Daniel il y a exemple sur excelabo (évidement) dans la zone "formation php" le classeur se connecte à une base mysql mais se connecte aussi en ftp je crois ... cordialement @+lolo
Comme je vois que tu n'as pas de réponse, je te joins la réponse trouvée dans les archives de EXCEL-L. C'est malheureusement en anglais. Si tu as des problèmes de traduction, fais-moi signe. The "Shell" command allows you to write a DOS command. In this case:
Sub FTP_exec() Shell ("ftp -v -s:" & ThisWorkbook.Path & "hc.txt" & " " & "150.0.0.2") End sub
ftp 'Uses the FTP command, NOTE you must have it installed it 'ususally comes installed but make sure it it in the 'Windows catalog. -v 'A flag that is necessary -s:" & ThisWorkbook.Path & "hc.txt" 'Gives the path to the textfile with the commands. This 'may be changed in any way you like. 150.0.0.2 'IP number to the server you want. NOTE don't forget the 'blank SPACE between the path and the IP.
the hc.txt file contains e.g.:
anonymous 'Login ID anonymous 'Password cd pubhelp 'Path to file lcd C:ProgramsExcel 'Path where you want the file get news.txt 'Get the file from the server bye 'Quits the FTP-Session
The commands are the FTP commands just as in an ordinary session.
To see other commands simply type: ftp help bye
on the DOS promt.
Daniel "!ssorp" a écrit dans le message de news:
Bonjour,
Je cherche à effectuer dans un classeur une connection via FTP sur une machine distante avec la récupération d'un fichier et ainsi le formater. Ce qu'il me manque c'est comment m'y prendre pour l'aspect FTP.
merci à tous et à toutes
!ss0rp
Bonjour.
C'est vrai, mais je suis nouveau ici, j'ai pas encore le réflexe Excelabo.
Daniel
"-=lolol=-" <polytek@SANSPUBfree.fr> a écrit dans le message de news:
OF%23%23P8K%23EHA.2112@TK2MSFTNGP14.phx.gbl...
Bonjour Daniel
il y a exemple sur excelabo (évidement) dans la zone "formation php" le
classeur se connecte à une base mysql mais se connecte aussi en ftp je
crois ...
cordialement
@+lolo
Comme je vois que tu n'as pas de réponse, je te joins la réponse
trouvée dans les archives de EXCEL-L. C'est malheureusement en
anglais. Si tu as des problèmes de traduction, fais-moi signe.
The "Shell" command allows you to write a DOS command. In this case:
Sub FTP_exec()
Shell ("ftp -v -s:" & ThisWorkbook.Path & "hc.txt" & " " &
"150.0.0.2") End sub
ftp 'Uses the FTP command, NOTE
you must have it installed it
'ususally comes installed but
make sure it it in the
'Windows catalog.
-v 'A flag that is necessary
-s:" & ThisWorkbook.Path & "hc.txt" 'Gives the path to the
textfile with the commands. This
'may be changed in any way you
like. 150.0.0.2 'IP number to the
server you want. NOTE don't forget the
'blank SPACE between the path
and the IP.
the hc.txt file contains e.g.:
anonymous 'Login ID
anonymous 'Password
cd pubhelp 'Path to file
lcd C:ProgramsExcel 'Path where you want the file
get news.txt 'Get the file from the server
bye 'Quits the FTP-Session
The commands are the FTP commands just as in an ordinary session.
To see other commands simply type:
ftp
help
bye
on the DOS promt.
Daniel
"!ssorp" <issorp@noos.fr> a écrit dans le message de news:
ea632579.0501120517.4765f2d6@posting.google.com...
Bonjour,
Je cherche à effectuer dans un classeur une connection via FTP sur
une machine distante avec la récupération d'un fichier et ainsi le
formater.
Ce qu'il me manque c'est comment m'y prendre pour l'aspect FTP.
Bonjour. C'est vrai, mais je suis nouveau ici, j'ai pas encore le réflexe Excelabo. Daniel "-=lolol=-" a écrit dans le message de news: OF%23%23P8K%
Bonjour Daniel il y a exemple sur excelabo (évidement) dans la zone "formation php" le classeur se connecte à une base mysql mais se connecte aussi en ftp je crois ... cordialement @+lolo
Comme je vois que tu n'as pas de réponse, je te joins la réponse trouvée dans les archives de EXCEL-L. C'est malheureusement en anglais. Si tu as des problèmes de traduction, fais-moi signe. The "Shell" command allows you to write a DOS command. In this case:
Sub FTP_exec() Shell ("ftp -v -s:" & ThisWorkbook.Path & "hc.txt" & " " & "150.0.0.2") End sub
ftp 'Uses the FTP command, NOTE you must have it installed it 'ususally comes installed but make sure it it in the 'Windows catalog. -v 'A flag that is necessary -s:" & ThisWorkbook.Path & "hc.txt" 'Gives the path to the textfile with the commands. This 'may be changed in any way you like. 150.0.0.2 'IP number to the server you want. NOTE don't forget the 'blank SPACE between the path and the IP.
the hc.txt file contains e.g.:
anonymous 'Login ID anonymous 'Password cd pubhelp 'Path to file lcd C:ProgramsExcel 'Path where you want the file get news.txt 'Get the file from the server bye 'Quits the FTP-Session
The commands are the FTP commands just as in an ordinary session.
To see other commands simply type: ftp help bye
on the DOS promt.
Daniel "!ssorp" a écrit dans le message de news:
Bonjour,
Je cherche à effectuer dans un classeur une connection via FTP sur une machine distante avec la récupération d'un fichier et ainsi le formater. Ce qu'il me manque c'est comment m'y prendre pour l'aspect FTP.