Jump to content
Sign in to follow this  
erik7426

Locating Windows

Recommended Posts

erik7426

I am implementing a remote assistance utility for our LAN. I know @WindowsDir will return the path for Windows on the local workstation, but how can I determine the path for Windows on a remote PC? I could hard-code C$\Windows and it would work for 99% of the PCs, but I want to make it as flexible as possible.

Edited by erik7426

Share this post


Link to post
Share on other sites
erik7426

Did you try to use admin$ which should map to %SYSTEMROOT% ?

Worked like a charm. Thanks Jos!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×