Search found 1 match

by alex1982
10 Oct 2008 07:28
Forum: DOS Batch Forum
Topic: replace string in filename
Replies: 1
Views: 8053

replace string in filename

hi
i want to execute lpr command replacing a substring in the filename
for example

LPR -S 192.168.3.20 -P AUTO d:\sample.txt

I want to replace the word sample with test because i really want to print file d:\test.txt

Is there any way i can do this with one command ?