FILENAME variable?

General questions about using WildEdit

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
grevesz
Posts: 6
Joined: Tue May 17, 2005 10:42 pm

FILENAME variable?

Post 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
ben_josephs
Posts: 2456
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I don't believe you can do this in WildEdit.
grevesz
Posts: 6
Joined: Tue May 17, 2005 10:42 pm

Post by grevesz »

Thanks

:cry:
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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.
Hope this was helpful.............good luck,
Bob
grevesz
Posts: 6
Joined: Tue May 17, 2005 10:42 pm

Post 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
Post Reply