IP address as a output filename + permission to local directory

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
johny
Posts: 1
Joined: 12 Nov 2022 14:28

IP address as a output filename + permission to local directory

#1 Post by johny » 12 Nov 2022 15:11

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

miskox
Posts: 553
Joined: 28 Jun 2010 03:46

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

#2 Post by miskox » 13 Nov 2022 10:21

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

Post Reply