Batch file to copy and rename file with ipaddress.extension
Posted: 21 Sep 2018 04:46
I'm not too familiar with batch files. Most commonly i use VBA/PHP, but i would like to have this one a go .
I would like to:
Fetch the user's IP address, Copy a file, and rename that file to ipadres.extension
So the new file name should be the IP.
for example:
ipconfig | find "IPv4" copy /y Expeditool.accdb Expeditool"IPv4".accdb
I tried...but just puts IPv4 in file name...
Could anyone help me out with this one? Thanks!
I would like to:
Fetch the user's IP address, Copy a file, and rename that file to ipadres.extension
So the new file name should be the IP.
for example:
ipconfig | find "IPv4" copy /y Expeditool.accdb Expeditool"IPv4".accdb
I tried...but just puts IPv4 in file name...
Could anyone help me out with this one? Thanks!