1.

Solve : Using Command To Change Filepath?

Answer»

I want to be able to INPUT a USERNAME e.g. Crusty69er or Wateva and then have a command input that username into a filepath.

e.g. Input username: Crusty69er, Wateva etc...
"c:\DOCUMENTS and SETTINGS\%USERPROFILE%\....."


If i havent explained properly soz, please ask for more info if ur unsure of wat im asking

If u could help that would be awesome
My email is [emailprotected]I'm not exactly sure what you are asking, so I'll take a guess. Here is a script that will ask for a username, and then attempt to change to that user directory based on your example:
Code: [Select]@echo off
set /p UsrName=Please enter the username:
cd /d "C:\Documents and Settings\%UsrName%"Note that this %USRNAME% would be very similar to the existing built-in %USERNAME% value (if you input the same user currently logged into Windows).



Discussion

No Comment Found