Kubotek Forum

KeyCreator CAD & CKD Viewer Technical discussion of CAD/CAM and integrated partner products
Customer Forum > KeyCreator CAD & CKD Viewer > KXL - Possible to use %USERPROFILE% or alt? View modes: 
User avatar
Member
Member
brandel.luebbert@steelvillemfg.com - 12/30/2018 10:57:44 AM
   
KXL - Possible to use %USERPROFILE% or alt?
Hello all,
Recently, I've been working on improving a macro we have at my company. So far so good, save one hangup - the macro auto-exports to the user's desktop.

That works fine as is - but that requires the end user editting the macro to supply their Windows user name for file path concatenation.

I attempted using the old Windows cmd approach of using %USERPROFILE% and ever escape for the % I could remember, but no luck. Is there a trick I'm missing, or an alternative to get to the current active user?
Thank you

User avatar
Advanced member
Advanced member
Hans_Winkler - 1/2/2019 1:29:04 PM
   
RE:KXL - Possible to use %USERPROFILE% or alt?

the macro auto-exports to the user's desktop


Could you write the information to a known directory?

I tried using the EXEC kxl function, but it doesn't seem to work. I have to investigate further to see if it is a bug.

Hans

1
Login