Janine,
The usual meaning of "batch file" comes from MS-DOS, and MS-DOS doesn't know usernames, let alone in batch files. And there's no MS-DOS program that will ever ask for it.
So please give more details, such as a listing of the relevant part of this batch file and its filename (including the extension). Of course, if there's any sensitive information in it, edit it and replace with something neutral.
Kees
I have no experience with coding batch files, but have been asked to look at and try to fix one here at my job. The batch file was written to transfer information from our company to another company. However, within the file, the username is hard-coded into the script. This would be fine, except that when we went to change to a new user, we have to change the code. Is there any way to use a constant value in the batch file, so that it will accept whatever user has permissions through the program?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic