Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

[Utilisation de excel][pour faire du FTP]

3 réponses
Avatar
issorp
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

3 réponses

Avatar
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


Avatar
-=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




Avatar
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