With batch script. Copy a file from one directory to another, then prompt me what to rename it to -


as title explains.

with batch script. copy file 1 directory another, prompt me rename to.

if similar file exist in target directory, replace/overwrite it.

can write in batch script? know how copy 1 directory another. second part don't know how it.

i think you're looking for:

@echo off set "oldfile=c:\somedirectory\test.txt" set "newdirectory=c:\someotherdirectory\" set /p "newfile=please enter filename new file: " copy /y "%oldfile%" "%newdirectory%%newfile%" 

Comments