#208535 - 2014-02-06 07:52 PM
noob help on ftp service please
|
Buhli
Fresh Scripter
Registered: 2012-09-24
Posts: 28
Loc: Berlin, Germany
|
Hello gents,
i need some help of you guys again.
When i tried out some examples, i found at the forums, i was really confused and they didn't work for me. The challenge i have is to make an automated ftp Login, if there are files-copy them to a local dir and remove them from the ftp-Server.
On the ftp-Server are no sub-directories, just the main directory with a couple of XML-files.
my thinking was: $Server = "ftp://blabla.com" $User = "Dummy" $Pass = "DummyPass" $Source ="ftp://blabla.com\*.xml" $Target = "C:\TargetDir\*.xml"
Sorry about my fooling, but i don't understand all the stuff in the FTPget-function. I'm pretty sure i did something wrong, but what? Maybe i also should use a variable $ file, not sure. I am the Hardware guy in my Company, not a prgrammer.
Can someone help me with this please?
For you guys it's maybe not a big deal, but for me it is.
The OS where it should run is Win XP - is there any different on other Windows btw?
Thank you very much for listen me and i hope, i posted this in the correct forums,
Buhli
|
|
Top
|
|
|
|
#208537 - 2014-02-06 09:05 PM
Re: noob help on ftp service please
[Re: Glenn Barnas]
|
Buhli
Fresh Scripter
Registered: 2012-09-24
Posts: 28
Loc: Berlin, Germany
|
Thank you very much Glenn, i will try that tomorrow! But i guess, i'm a hopeless case at this kind of work.
Why is there an "s" infront of the variables?
Cheers,
Buhli
|
|
Top
|
|
|
|
#208567 - 2014-02-10 01:55 PM
Re: noob help on ftp service please
[Re: Glenn Barnas]
|
Buhli
Fresh Scripter
Registered: 2012-09-24
Posts: 28
Loc: Berlin, Germany
|
Hi gents,
mget don't work???
I see one more problem and i have no clue how to fix this. Not tried right now, just planning.
If it would work with mget and then with mdelete all the files, it is quite dangerous imo-maybe there comes another file between the commands. I guess it will be removed as well?!
Btw, you guys really make me think about scripting;)
Cheers,
Buhli
|
|
Top
|
|
|
|
#208584 - 2014-02-12 09:01 AM
Re: noob help on ftp service please
[Re: Buhli]
|
Buhli
Fresh Scripter
Registered: 2012-09-24
Posts: 28
Loc: Berlin, Germany
|
Is there an option to get and remove them one by one? That would be great, but i have no idea it is possible or not to make a loop in the ftp block. I don't want to reconnect all the time, but if it is nesscary...
Buhli
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Henriques)
and 2516 anonymous users online.
|
|
|