<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in XP batch files: Create variable for current user account and find current user | Batch file programming | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Thu, 29 Mar 2007 13:28:03 -0000</lastBuildDate><item><title>Re: XP batch files: Create variable for current user account and find current user | Batch file programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1906/xp_batch_files_create_variable_current_user_account_finding_current_user/#comment-2770579</link><description>Hi&lt;br&gt;&lt;br&gt;I can't see your batch file, but in this example&lt;br&gt;&lt;br&gt;@echo off&lt;br&gt;Echo Current user:  %USERNAME% &amp;gt;  "%USERPROFILE%%USERNAME%.txt"&lt;br&gt;&lt;br&gt;&amp;lt;Note: the Echo line is supposed to be on 1 line if it does not show on 1 line&amp;gt;&lt;br&gt;&lt;br&gt;A text file will be created in the current users profile folder with their username as the file name with the text Current user: &amp;lt;username&amp;gt;&lt;br&gt;&lt;br&gt;In XP, this would be in C:Documents and Settings&amp;lt;username&amp;gt;&lt;br&gt;In Vista, this would be C:Users&amp;lt;username&amp;gt;&lt;br&gt;&lt;br&gt;Hope this is what you were looking for.&lt;br&gt;&lt;br&gt;RLJ</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 29 Mar 2007 13:28:03 -0000</pubDate></item><item><title>Re: XP batch files: Create variable for current user account and find current user | Batch file programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/1906/xp_batch_files_create_variable_current_user_account_finding_current_user/#comment-2770578</link><description>:lol:  I need this file (or one like it) in a BAD way right now.....but this one did NOT work as advertised. I'm sure there's just a teeny adjustment needed in the syntax. Can someone read the syntax and help? Or tell me why it does NOT place a (username).txt file ANYWHERE in the logged-on user's profile?&lt;br&gt;&lt;em&gt;&lt;strong&gt;THANX!&lt;/strong&gt;&lt;/em&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 21 Mar 2007 10:16:44 -0000</pubDate></item></channel></rss>