It's possible to have the file explorer user name be one thing, and the user account name be another. In the case you want them to be different (not suggesting that is a good idea), does each one have its own environment variable. Can you programmatically determine the name that file explorer is using if it's not the same as %USERNAME%?
My Computer
At a glance
Windows 11i7-10700K16GbIntel Onboard graphics
- OS
- Windows 11
- Computer type
- PC/Desktop
- Manufacturer/Model
- Self
- CPU
- i7-10700K
- Motherboard
- Ausus Prime B460M-!
- Memory
- 16Gb
- Graphics Card(s)
- Intel Onboard graphics
- Sound Card
- None
- Monitor(s) Displays
- 1
- Screen Resolution
- 1920x1080
- Hard Drives
- Samsung 970 EVO Plus NVMe M.2
- PSU
- EFGA 550 G2
- Case
- None
- Cooling
- CPU stock cooler only
- Keyboard
- Razer Black Widwo





