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
Variable SLEEP behavior.
Running Win 7 Home Premium on a custom desktop, all updates applied. Regardless of what happens to be running at the time, when I issue the SLEEP command at night, the HD stops spinning, the monitor goes dark, and the power light starts blinking. Then the following morning: 1) 5% of the time,...
Performance & Maintenance
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
Set permanent variable in cmd
I am trying to find a way to set a variable in the cmd that is "permanent". What I mean is that I could set the variable %message% to "hello", and I could close the cmd, open it up a week later and if I typed this: echo %message% This would be the result hello Using the normal SET command...
General Discussion
Variable speed dvd burning
Hi all, I have an LG GH22NS50 burner and am having trouble with burning movies. When using Ritek 8x speed I get frame stutter but if i use an old Verbatim DVD-RW I've got, which is 2x speed, no problem. The burner seems to burn at the rated media speed so I'm wondering if there is (a) any new...
Hardware & Devices
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).
repeated variable bsods
I keep getting irregular bsods. One is in Photoshop CS5, which was the last before I generated the Windows_NT6_BSOD_jcgriff2 report. Only happens with certain adjustments such as image adjust exposure. Sometimes only hangs PS, others bsod. May also happen seemingly randomly like double...
BSOD Help and Support

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 15:18.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App