Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Is there any script example to download or upload from ftp site?

Reply
 
Old 04-10-2007   #1 (permalink)
Lance R.


 
 

Re: Is there any script example to download or upload from ftp site?

Yeah, what Brandon said. And here are some specific examples of the ftp
cmdlets in NetCmdlets:
general examples:
http://geekswithblogs.net/lance/arch...t_for_FTP.aspx
recursive upload:
http://geekswithblogs.net/lance/arch...07/100588.aspx

hth

Lance



My System SpecsSystem Spec
Old 04-12-2007   #2 (permalink)
ABC


 
 

Is there any script example to download or upload from ftp site?

I am newie, I want write a script to download or upload some files from/to
ftp site.

Is there any script example to download or upload from ftp server?


My System SpecsSystem Spec
Old 04-12-2007   #3 (permalink)
Brandon Shell


 
 

Re: Is there any script example to download or upload from ftp site?

You can use: NetCMDLets
http://blogs.msdn.com/powershell/arc...available.aspx

--
Brandon Shell
---------------
Stop by my blog some time
Blog: http://www.bsonposh.com/
PSH Scripts Project: www.codeplex.com/psobject
--------------------------------------

"ABC" <abc@abc.com> wrote in message
news:OHtiuCSfHHA.3884@TK2MSFTNGP04.phx.gbl...
>I am newie, I want write a script to download or upload some files from/to
>ftp site.
>
> Is there any script example to download or upload from ftp server?
>


My System SpecsSystem Spec
Old 04-13-2007   #4 (permalink)
Jim Holcomb


 
 

Re: Is there any script example to download or upload from ftp site?

ABC wrote:
> I am newie, I want write a script to download or upload some files from/to
> ftp site.
>
> Is there any script example to download or upload from ftp server?
>

I use the ftp command in Windows like this. Plain, no error checking,
etc., but it works for me.

Jim

$ftpfile = "open ftp.example.com`r`n"
$ftpfile += "username`r`n"
$ftpfile += "password`r`n"
$ftpfile += "binary`r`n"
$ftpfile += "lcd c:/`r`n"
$ftpfile += "cd /directoryname `r`n"
$ftpfile += "put myfile.zip`r`n"
$ftpfile += "put myotherfile.zip`r`n"
$ftpfile += "quit`r`n"
Set-Content -path c:\ftpcommands.txt $ftpfile

ftp "-s:c:/ftpcommands.txt"
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Hard to upload my site,.Help! Network & Sharing
mail upload/download Live Mail
Cannot Upload via http to Web Site with Vista Vista General
Upload web site in HTML Vista General
publish /upload pictures on external site no more available in Vista ? Vista music pictures video


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46