Get subnet mask to variable Share on Facebook Post on reddit Tweet on Twitter Share on LinkedIn Home › Forums › Scripting › DOS Command Shell › Get subnet mask to variable This topic has 3 replies, 3 voices, and was last updated 6 years ago by dalesnail. Viewing 1 post (of 1 total) Author Posts confuseisParticipant Sep 04, 2015 at 9:07 am #165727 Hi To cut a long story short I need to get just the subnet mask on its own to a variable I can use in DOS I can get the ip address on its own but need the mask also I need to feed these values to other parts of the batch file How would I even display the mask on its own? I have searched about and nearest I came was the netsh command. I need to isolate the subnet mask. Hope someone has a idea? Thanks Confuseis Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.