Why? In my tests %1 works without problems.HolgerK wrote:You should use "%*" to make it work.krypton wrote:1- Create an empty bat file with this string inside: copy nul "%1"
Regards
Holger
"Create new empty file" function
Moderators: Hacker, petermad, Stefan2, white
If i get it right you want to create a filename containing spaces.
With %1 you will get only the string until the first space.
Command line parameter are separated by space.
%1 is the first parameter
%2 is the second parameter
%* is the complete line of parameters.
Regards
Holger
With %1 you will get only the string until the first space.
Command line parameter are separated by space.
%1 is the first parameter
%2 is the second parameter
%* is the complete line of parameters.
Regards
Holger
Make our planet great again
You are right, before I tried the bat file with another instructions. Thanks, I have corrected the post.HolgerK wrote:If i get it right you want to create a filename containing spaces.
With %1 you will get only the string until the first space.
Command line parameter are separated by space.
%1 is the first parameter
%2 is the second parameter
%* is the complete line of parameters.
Regards
Holger
I have written this simple ahk script:
To execute, I tap left arrow in TC (that opens the run command), and press /// (that sends the string copy nul "" to the run command. I then type the filename without bothering about spaces. It is a one-finger mouse-less operation (except for the filename). For me, it works simpler than a batch file. Some others may also find it useful.#IfWInActive, ahk_class TTOTAL_CMD
:*:///::
{
SendInput copy nul ""
Send {Left}
}
return