Topic "Custom Commands: Cannot Use !* as Prompt Defaults"

Author Message
[View user's profile]

Joined: 2009-04-08
Posts: 30
Location: Happyworld Land
I'm running into some issues with the prompt feature of custom commands. I need to be able to set the filename as the default for a prompt, but no matter what I do, I can't do it. Escaping with \! (for filename) or \!/ (for directory) reads the default as '\' and quotes did the same thing so I'm stuck. Any suggestions?

cp ! !?directory:?"!/"!!?filename:?"!"!

Also I'd like to be able to get the filename and extension separate, so I can just append something to the end of the filename, but before the extension.

Usually I like to append a date/time to the end, so maybe some date/time functionality would be quite useful as well.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
This is not possible unfortunately.

Also I'm not going to turn the custom command functionality into scripting language Smile
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License