Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: User Variable %username%

20 Oct 2010   #1

Windows 7 Ultimate x32
User Variable %username%

Hi Guys and Girls,

I wonder if someone might be able to help me. We use a product called wildfire 5 with user variables set as follows



This seems to work on first look at the set command in dos. The logged on username is shown against the above variable but as soon you restart the machine the above user variables reverts back to the above.

So it is shown in the set comand as



Rather than

WT_PTC_ROOT = C:\PTC\Local_Data\wayneg

WT_PTC_HOME = C:\PTC\Local_Data\wayneg

I have tried putting a system variable in as follows

username = %username%

But no luck.

Does anybody have any ideas or work arounds? This works fine in XP without a problem.

Any help would be great.

Cheers, Wayne

My System SpecsSystem Spec
20 Oct 2010   #2

Windows 7 32 bit

I would take a loot at this:

Setx - Set environment variables

Otherwise, I think with Vista and W7 you have to set registry keys for your product's environment variables.

edit: this may be more to the point. Reading it now:
My System SpecsSystem Spec

 User Variable %username%

Thread Tools

Similar help and support threads
Thread Forum
Challenging Case - How to reset user password under special username
Hello, I encounter a difficult case recently Background: 1: The user account HKDM/kit.tsui is shown after starting the window 2: There is a button to switch user account. If you click this button, you are allowed to type username and password. 3: The window is installed in D driver. In...
General Discussion
Is the "net user <username> /domain" reliable
Hi Lately I have noticed that either my desktop and laptop are being accessed while I am away or even when I am logged in into the domain of my organization! On both of them I have user profiles of some users, and when running the following: net user <username> /domain | findstr /C:"Last...
Network & Sharing
Unable to move user folder (C:\user\*username*) to different location
Hi using windows 7 I am unable to move user profile folders to a different drive (C drive space is limited), I have attempted to move it via the MMC LU&G snap-in and it refuses to work both with old accounts that already existed and new ones that had never been logged in. I have attempted with...
General Discussion
Username "New user" After Installing
Well basically I never changed my username while installing a new copy of Windows 7 I got with a new PC. Its stuck as "New User" I've tried searching but found nothing to change that part of it, Its really no Big deal but its a bit Frustrating not knowing how to...
General Discussion
Change windows username (ComputerName/Username
I set up my computer a long time ago with a stupid username, and I wanna know how to change it. I can change my logon username, but not the actual username (COMPUTERNAME/Username) or the user directory (C:/Users/USERNAME).

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:41.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App