![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | command ftp Hi,plz tell me why command: ftp -s:"c:\ftp.txt" in CMD work and in Powershell - it show me all options of ftp command and dont work. |
My System Specs![]() |
| | #2 (permalink) |
| Scripting Guru ![]() Rep Power: 8 ![]() ![]() ![]() | Re: command ftp That's an excellent question. It doesn't make sense other than a bug of some sort. Here's a work around for PowerShell: cmd /c 'ftp -s:c:\ftp.txt' |
My System Specs![]() |
| | #3 (permalink) |
| Scripting Guru ![]() Rep Power: 8 ![]() ![]() ![]() | Re: command ftp I stumbled upon a fix: ftp '-s:ftp.txt' Not sure why this is required for this parameter other than maybe something with the PowerShell parser that doesn't like the punctuation. |
My System Specs![]() |
| | #4 (permalink) |
| Scripting Guru ![]() Rep Power: 8 ![]() ![]() ![]() | Re: command ftp the PowerShell parser sees the -s and tries to parse it as a PowerShell parameter when it really isnt'. Use my fix to get around this. Another alternative is to use the free FTP com object from SAPIEN (SAPIEN Technologies, Inc. - VBScript Editor, PowerShell Editor, ASP Editor, ActionScript Editor, PHP Editor, and more.). Shay has some nice PowerShell functions also ready to go for this at $cript Fanatic: FTP transfers automation. |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command Line Ren (Rename) command broken? | SixSigmaGuy | Vista General | 5 | 05-20-2008 05:52 AM |
| Command prompt "COPY" command not working in brand new Windows Vis | CMD COPY command not working in Vista | Vista file management | 7 | 02-05-2008 03:20 PM |
| formatting command syntax like get-help or get-command | klumsy@xtra.co.nz | PowerShell | 1 | 10-18-2006 12:04 PM |
| net use command | =?Utf-8?B?Z2xlbm5fOTcxMjQ=?= | Vista General | 2 | 08-07-2006 03:48 PM |
| Executing a command like run [command] | Singee | PowerShell | 5 | 06-05-2006 02:17 PM |