Page 1 of 1

IP address as a output filename + permission to local directory

Posted: 12 Nov 2022 15:11
by johny
Welcome to the esteemed group of forumers!
How good that you are.. :!:

I wanted to get some advice on a creating batch file because I'm a beginner :oops: and don't know how to start. I don't even know if it possible to with bat file.
I would like to create 2 files:

1)
changgne the internet time server from time.windows.com to 192.168.1.100
give modification and write permissions for the c:\share directory
ask for the IP address after which it sets it for the LAN card

2)
file after running displays data from the LAN card like
IP GATEWAY MASK MAC
and saves it as a file named IP.TXT

thanks for any help

Re: IP address as a output filename + permission to local directory

Posted: 13 Nov 2022 10:21
by miskox
What are the commands if you do this by yourself from the command prompt? Then try to put that into a .bat/.cmd file. And run it. See the results.

Saso