how do i run my shell Shell("netsh interface ip set address" & Chr(34) & "Local Area Connection" & Chr(34) & "static 10." & IPAddy & ".4") as admin? PLZ

I am assuming that 'IPAddy' Is a variable declared the contains a number in the x.x format.
Try Using This:

Shell("runas.exe /users:administrator netsh interface ip set address" & Chr(34) & "Local Area Connection" & Chr(34) & "static 10." & IPAddy & ".4")

I am assuming that 'IPAddy' Is a variable declared the contains a number in the x.x format.
Try Using This:

Shell("runas.exe /users:administrator netsh interface ip set address" & Chr(34) & "Local Area Connection" & Chr(34) & "static 10." & IPAddy & ".4")

Yea i tried that nothing happens. thanks for the suggestion.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.