• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter SUNDAY EVENING. Using JScript to... > Working with Networks and Network Re...

Working with Networks and Network Resources

If your computer is connected to a home or corporate network, you can also create JScripts that interact with and control network resources (assuming that you have security privileges over those resources). To make this happen, you need to work with the WshNetwork object. This object provides access to several properties that provide information about the network to which a computer is attached. These properties include:

  • UserName. Returns the account name of the user currently logged on.

  • ComputerName. Returns the name of the computer as it will appear to other network users.

  • UserDomain. Returns the name of the domain to which the computer is currently logged in.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint