-
Website
http://www.tech-recipes.com/ -
Original page
http://www.tech-recipes.com/rx/1906/xp_batch_files_create_variable_current_user_account_finding_current_user/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
davak
83 comments · 1 points
-
danishbacker
9 comments · 1 points
-
flexinfo
11 comments · 1 points
-
bej
4 comments · 1 points
-
dimithri
5 comments · 1 points
-
-
Popular Threads
-
Windows 7: How to Prevent the Mouse from Waking your PC
14 hours ago · 1 comment
-
Outlook 2010: Turn Off Attachment Preview
1 week ago · 1 comment
-
Gmail: How to Send SMS Messages Without Using Email
2 weeks ago · 2 comments
-
Windows 7 – Prevent Live Messenger from Opening at Start Up
1 week ago · 1 comment
-
Symfony: Drop Down List Box Without Submit Button
3 weeks ago · 1 comment
-
Windows 7: How to Prevent the Mouse from Waking your PC
THANX!
I can't see your batch file, but in this example
@echo off
Echo Current user: %USERNAME% > "%USERPROFILE%%USERNAME%.txt"
<Note: the Echo line is supposed to be on 1 line if it does not show on 1 line>
A text file will be created in the current users profile folder with their username as the file name with the text Current user: <username>
In XP, this would be in C:Documents and Settings<username>
In Vista, this would be C:Users<username>
Hope this is what you were looking for.
RLJ