Hi there guys,
I'm currently trying you use this line of code which works fine:
"%SystemRoot%\explorer.exe "C:\Program Files\Steam\Steamapps"
But after \steamapps there is a username which differs from computer to computer. I need to get past that in-order to open up another file.
Could you tell me how to make it open all usernames or %Username% or something.
Thanks.
How to get pass username.
Moderator: DosItHelp
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
UNTESTED
Code: Select all
for /f "usebackq tokens=*" %%a in (`dir /ad /b "C:\Program Files\Steam\Steamapps"`) do (
"%SystemRoot%\explorer.exe" "C:\Program Files\Steam\Steamapps\%%a\yourfile.txt"
)