Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Can't create .filepart with a file that has no extension.

Please attach a full session log file showing a successful download of a file with an extension and failed download of a file from the same remote folder to the same local folder without an extension.

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Geoffww

Can't create .filepart with a file that has no extension.

I'm using 6.3.6. I have several commands getting and putting files with extensions that are working fine, just won't work with non extension files. I've browsed Google for a solution but none are working.
I've tried...
get /usr/bin/php   #  (this throws error and halts the script)
get /usr/bin/php*  #  (this throws error and halts the script)
get /usr/bin/php*. #  (this throws "file not found" but continues with the rest of the commands i.e. put)

My get command in a .bat file.
   "open sftp://root:[password]@%IPAddress%/ -hostkey=* -rawsettings ProxyPort=0" ^
   "get /usr/bin/php* "%BuildDir%\Backup\PHP\"" ^

The error
Session started.

Active session: [1] root@10.0.0.100
php                       |            0 B |    0.0 KB/s | binary |   0%
Can't create file 'E:\Backup\PHP\php.filepart'.
System Error.  Code: 3.
The system cannot find the path specified
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort
Error