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: Put File Asterik in Destination Folder Name

gtjr wrote:

for instance file name TestFile1234.txt destination folder
\upload\*BIN when I run the session put file it tries to upload to \upload\TestFile1234.txtBIN

If the \upload\*BIN is a path to a target directory, it has to end with a slash (and you probably want to use forward slashes):
/upload/*BIN/
See https://winscp.net/eng/docs/library_session_putfiles#remotepath
gtjr

Re: Put File Asterik in Destination Folder Name

I fat fingered my original note sorry. Corrected here. I have a client who wants files uploaded to a folder with an asterisk in their folder name. When I add this so my session putfile it removed the * and appends the rest of the folder name to my filename that i am uploading. for instance file name TestFile1234.txt destination folder
\upload\*BIN when I run the session put file it tries to upload to \upload\TestFile1234.txtBIN I have used session putfile many times with no issues but having a special character in the destination folder name is a new one for me.
gtjr

Put File Asterik in Destination Folder Name

I have a client who want files upload to a folder with an asterisk in their folder name. When I as this so my session putfile it removed the * and appends the rest of the folder name to my filename that i am uploading. for instance file name TestFile1234.txt destination folder
\upload\*BIN when I run the session put file it tries to upload to \upload\TestFile1234.txtBIN I have used session putfile many times with no issues but having a special character in the destination folder name is a new one for me.