Kubotek Forum

KeyCreator CAD & CKD Viewer Technical discussion of CAD/CAM and integrated partner products
Subscribe to post
User avatar
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
Login