1.

Solve : Renaming a folder with user input batch file question?

Answer»

hi huys, this is my first post so a BIG hi!


I have a question for you EXPERTS, can you HELP me?

I want to use a batch file that will rename a folder with the users INPUTTED name.

so when I run the batch file it would say:

Please enter your name:

Then it would rename a folder on the local pc to the inputted name.

Any Ideas?

Thanks in advance

Macdepending on what file you want to rename you want to use the 'ren' command i.e. rename.

Code: [Select]@echo off
set /p comm=please enter your name
ren C:\...\yourfile c:\...\%comm%
pause

FBCheers FB,

I hope you have a long and happy life, win the lottery, etc

been looking for that for ages


thank you very much

Mac



Discussion

No Comment Found