Solved Hello and thank you

January 19, 2017 at 08:35:05
Specs: windows 10
I clicked on your nme elsewhere and it led me here.

I would like to create a batch file that does the following:

Rename a file using the content of the clipboard as the new name for the file:

Old file name: olddocument123.pdf
Clipboard content: smith,charles

Batch file execution does this:

rename olddocument123.pdf to smith,charles.pdf

thank you.

See More: Hello and thank you

Report •

January 20, 2017 at 01:57:18

I'm not sure if that's even possible in batch.

Why do you need to do it?

Get back with a response soon. Thank you.

Jay Sarma
Music Producer and Game Developer
Dibrugarh, Assam, India

Report •

January 20, 2017 at 06:21:35
✔ Best Answer
Can you pull text out of the clipboard with:
Batch? No.
VBScript/JScript? I don't know of any usable object.
PowerShell? Yes, given certain prerequisites.
VBA? Yes, using native API calls.

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question