0

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?

Hxnry
  • 3

1 Answers1

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