Community Page
- www.tech-recipes.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- i found it after i sent it lol blondie here lol.. just sent u a message on the wii.! thanks!
- micheal send a nice phone and picture to me.
- Yes, but here it is again. It is 4285 2670 2528 4658
- sure thing!! is ur wii number on this list?
- Hi Lorraine, I just added you on my list. you can add me if you want
Tech-Recipes
Cookbook of Tech TutorialsXP batch files: Create variable for current user account and find current user | Batch file programming | Tech-Recipes
Started by qdideas · 9 months ago
2 years ago
THANX!
2 years ago
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