I wanted to change cmd prompt from ,,C:/users/____/foldername>" to ,,foldername $ ".. But windows does not provide an easy way to do it so. Had anyone found any solution? If they did, is there any simple way to apply it?
Asked
Active
Viewed 185 times
1 Answers
0
I'm not sure that it's possible to change this behavior of command prompt.
An alternative solution is to use a batch script like that :
@echo off
:loop
for %%I in (.) do set currentFolder=%%~nxI
set /P commandLine=%currentFolder%$
%commandLine%
goto loop
Save this code in a .bat file to have your custom cmd.
Warning : the behavior could be sometime different compare to the true CMD.
S. Brottes
- 1,289