net time

Author Message
cjwallace

  • Total Posts : 549
  • Scores: 0
  • Reward points : 0
  • Joined: 3/5/2005
  • Location: United Kingdom
  • Status: offline
net time Saturday, March 05, 2005 8:51 AM (permalink)
0
Hi Guys, does anyone know how i could use the net time command in a vbscript?

net time \\homer /set /yes


Many thanks
 
#1
    token

    • Total Posts : 1917
    • Scores: 0
    • Reward points : 0
    • Joined: 1/14/2005
    • Location:
    • Status: offline
    Re: net time Saturday, March 05, 2005 9:13 AM (permalink)
    0
    Try this:

    set shell = createobject("wscript.shell")
    shell.run("net time \\homer /set /yes")
     
    #2
      tnoonan

      • Total Posts : 364
      • Scores: 0
      • Reward points : 0
      • Joined: 12/14/2004
      • Location:
      • Status: offline
      Re: net time Saturday, March 05, 2005 9:18 AM (permalink)
      0
      Set oShell = CreateObject("Wscript.shell")
      Set objWshScriptExec = oShell.Exec("net time \\homer /set /yes")
       
      #3
        cjwallace

        • Total Posts : 549
        • Scores: 0
        • Reward points : 0
        • Joined: 3/5/2005
        • Location: United Kingdom
        • Status: offline
        Re: net time Sunday, March 06, 2005 2:10 AM (permalink)
        0
        Thanks guys for you help. When i get into work monday i will add it to my script and try it out

        Really trying to learn this stuff and so far this site has been great
         
        #4
          token

          • Total Posts : 1917
          • Scores: 0
          • Reward points : 0
          • Joined: 1/14/2005
          • Location:
          • Status: offline
          Re: net time Sunday, March 06, 2005 7:36 AM (permalink)
          0
          We are all here to learn
           
          #5
            Snipah

            • Total Posts : 1339
            • Scores: 8
            • Reward points : 0
            • Joined: 11/1/2004
            • Location: Scotland
            • Status: offline
            Re: net time Monday, March 07, 2005 4:41 AM (permalink)
            0
            We synch up with the DC, way easier, hehe
             
            #6
              token

              • Total Posts : 1917
              • Scores: 0
              • Reward points : 0
              • Joined: 1/14/2005
              • Location:
              • Status: offline
              Re: net time Monday, March 07, 2005 6:38 AM (permalink)
              0
              Isn't that the default behavior since 2000 ? hm...maybe I miss something :\
               
              #7

                Online Bookmarks Sharing: Share/Bookmark

                Jump to:

                Current active users

                There are 0 members and 1 guests.

                Icon Legend and Permission

                • New Messages
                • No New Messages
                • Hot Topic w/ New Messages
                • Hot Topic w/o New Messages
                • Locked w/ New Messages
                • Locked w/o New Messages
                • Read Message
                • Post New Thread
                • Reply to message
                • Post New Poll
                • Submit Vote
                • Post reward post
                • Delete my own posts
                • Delete my own threads
                • Rate post

                2000-2012 ASPPlayground.NET Forum Version 3.9