-
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
-
Web Design
3 comments · 1 points
-
danishbacker
9 comments · 1 points
-
flexinfo
11 comments · 1 points
-
Tonychelle
4 comments · 1 points
-
-
Popular Threads
-
Facebook: How To Get Only Status Updates on Your FB Home Page
1 week ago · 4 comments
-
Firefox: Enable Case Sensitive Searches When Using Find (Ctrl+F)
4 days ago · 1 comment
-
Windows 7: How To Disable Live Preview for Taskbar Thumbnails
1 week ago · 2 comments
-
Gmail: How to block a sender from your inbox
3 weeks ago · 3 comments
-
Our first iPhone game GreenThumb available in the App Store
3 weeks ago · 2 comments
-
Facebook: How To Get Only Status Updates on Your FB Home Page
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