Page 1 of 1

FILENAME variable?

Posted: Thu Apr 22, 2010 4:55 pm
by grevesz
Hello,

In the replacement string, I need to put the filename of the file being edited with and without extension.
How do I do that?

Example:
If editing file1.txt, then the replacement string should be file1 file1.txt.
If editing file2.txt, then the replacement string should be file2 file2.txt.

Thanks in advance!

Gabor

Posted: Thu Apr 22, 2010 6:33 pm
by ben_josephs
I don't believe you can do this in WildEdit.

Posted: Thu Apr 22, 2010 6:41 pm
by grevesz
Thanks

:cry:

Posted: Thu Apr 22, 2010 10:26 pm
by Bob Hansen
While using TextPad, you could run a macro to Insert Filename, copy it to clipboard, and delete it. Then you could later paste it from the clipboard into WildEdit replacement field.

Posted: Thu Apr 22, 2010 11:07 pm
by grevesz
Since I think I would have to do that for each file, that would only be OK for a low number of files. Not for 100s...

Thanks anyway!

Gabor