QEDCURWFILE Variable
Qedit updates a variable, QEDCURWFILE, with the name of your current or last workfile. The name in this variable is the same as the name substituted when you use “*” as a parameter in a User Command. This gives you the ability to reference the current workfile easily from within a User Command without having to pass it in as a parameter.