Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Open directory in LAN ?

Open directory in LAN ?

Scheduled Pinned Locked Moved System Admin
helptutorialquestion
4 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hex
    wrote on last edited by
    #1

    i have a task to open a directory on another pc in the LAN ,this directory is shared with password,and i dont want to display dialogue for user to click . i dont know how to do this ,anybody help me? thanks in advance.

    R 1 Reply Last reply
    0
    • H hex

      i have a task to open a directory on another pc in the LAN ,this directory is shared with password,and i dont want to display dialogue for user to click . i dont know how to do this ,anybody help me? thanks in advance.

      R Offline
      R Offline
      Roger Wright
      wrote on last edited by
      #2

      NET USE \\hostname\sharename password Tack on /PERSISTENT:YES if you want it to be a lasting connection. At a command prompt, type NET USE /? for a list of other options.

      H 1 Reply Last reply
      0
      • R Roger Wright

        NET USE \\hostname\sharename password Tack on /PERSISTENT:YES if you want it to be a lasting connection. At a command prompt, type NET USE /? for a list of other options.

        H Offline
        H Offline
        hex
        wrote on last edited by
        #3

        thank you. can i place this command in my program code? and is there any WindowsAPI which can do this?

        R 1 Reply Last reply
        0
        • H hex

          thank you. can i place this command in my program code? and is there any WindowsAPI which can do this?

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #4

          I don't know about the Windows API - I've just begun playing with it, but this command can be put into a batch file and run from the startup folder. I used to use a variation of the NET command this way to sync all my client PCs to the same time using the server's current time setting. One drawback is that it can leave a Command Prompt window open on completion. Adding a second command to the batch file of EXIT should close the DOS window.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups