• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

DOS Questi

Jakev3

Banned
I have a file called file.bat on my computer. When the user clicks on it, i want it to capture the user's login name (NT) and store in a variable (i.e., $username would replace with the real username of that user). What variable/code do i put into the this bat file? Someone told me this can be done. I'm clueless about DOS, so please help me out.
 
What he said

For example, this basic command will append each user that logs on to the file "users.txt" if you put it in the logon script

@echo %username% >>c:\users.txt
 
Back
Top