Recommended Posts

Net(work)sh(ell) is deep.

There's plenty of stuff it covers that's all over windows; but since you're posting this question, i'm sure you know that.

The only GUI design that makes sense is a tree like structure; and then, why not just type it out :p

But... if anyone takes this on... I'll be the first to grab it.

ps:

If you're into netsh, check out wmic

Can't wait for Mono Gnad...

Edited by bigflavor
Link to comment
https://www.neowin.net/forum/topic/480028-gui-netsh/#findComment-587717059
Share on other sites

  Quote
why not just type it out

well, there are a few gui based type ip address changers out there but none are freeware. I was just looking for an alternative.

I'm trying to build something with vb but my "skills" are not enough to grasp what needs to be done.

if you look at netchange it is suppose to do what I am looking for but I can't get it to work.

so far I've made numerous batch files that will change the ip for me but I was looking for something a little more user friendly.

Link to comment
https://www.neowin.net/forum/topic/480028-gui-netsh/#findComment-587717517
Share on other sites

just my tcp\ip settings

I have it worked out with batch files

but what I want to be able to do is add/remove new tcp\ip settings and save them and then, run them when needed depending on where I am

NetseMan is what I'm looking for but I would be using it for work purposes so thert means buying it.

Our IT guy is a real stickler for keeping things licensed and paid for.

I'm a beginner VB6 user so I know enough to make the interface if needed but have no idea how to do any other type of programing. I'm sure eventually I would learn how to make this but right now I'm hoping someone else has a freeware version that can be used commercially or if someone had written one in VB already

Edited by hairyjohnson
Link to comment
https://www.neowin.net/forum/topic/480028-gui-netsh/#findComment-587725116
Share on other sites

Are you trying to develop this for the enterprise or just a tool to use in your company?

If so, you said you have it worked out in batch files right?

Try this...

Private Sub Button1_Click(ByVal sender As System.Object, _

ByVal e As System.EventArgs) Handles Button1.Click

System.Diagnostics.Process.Start("YOURH FILE HERE")

End Sub

Dim each batch file to a button, and you should be good to go.

http://blogs.msdn.com/vbfaq/archive/2004/05/30/144573.aspx

Link to comment
https://www.neowin.net/forum/topic/480028-gui-netsh/#findComment-587726585
Share on other sites

I already had it setup similiar to what you said. I do call the batch files from a vb frontend .

what I want to do is have a program (vb) that will create new connections and save them so that I can access them whenever I want. I'm thinking more of a user inputs information, the vb program saves that information and then I can select whichever setup I want and activate it.

The way I have it now, I have to create the batch file and then call it to activate it.

I want a more gui approach to creating and saving different configurations

Link to comment
https://www.neowin.net/forum/topic/480028-gui-netsh/#findComment-587727410
Share on other sites

Ok, so what you would need to do is essentially create two programs...

1. That would create the batch file for you using CreateObject("Scripting.FileSystemObject")

2. That would exectue the desired connection, based on some sort of criteria

Then tie it all together in a nice little front end...

Here is reference to the FileSystemObject....

http://www.devguru.com/Technologies/vbscri...stemobject.html

Good Luck!

Link to comment
https://www.neowin.net/forum/topic/480028-gui-netsh/#findComment-587727793
Share on other sites

You can build the run lines into a variable that will take text from textboxes.text :)

Then run several:

System.Diagnostics.Process.Start(strChuckNorris)

for each of the lines in your batch.

That's a really simple way to do what you want, while being able to actually input info into a VB program (hence changing the info).

You could use FSO (filesystemobject), to read and write lines to save. Also look into the calling the Common Dialog box (the built-in windows save/open/etc input boxes).

But if you're gonna get that crazy, you may as well scratch the System.Diagnostics.Process.Start(strChuckNorris) idea and just do WMI calls to set all that stuff. I love WMI. (Win32_NetworkAdapterConfiguration)

I'll track the topic, as I'm sure crobertson is already, and we'll help you out with programming questions. This is a simple program, you should be able to bang it out in no time...

Please post a screen shot of your layout...

Good luck,

Matt

Edited by bigflavor
Link to comment
https://www.neowin.net/forum/topic/480028-gui-netsh/#findComment-587730154
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.