Results 1 to 6 of 6

Thread: Matthew Gates(Reponse to a post of urs)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344
    when i do this it high lights shell and says expected statement.... any ideas?


    I was searching and I found this code:



    code:--------------------------------------------------------------------------------Private Sub Command1_Click()
    Shell ("net use ?: \\??\c"), vbHide
    End Sub

    ? = The drive letter you want to use
    ?? = the network name of the computer you are trying to map to
    --------------------------------------------------------------------------------

    -RaY
    VB .Net 2010 (Ultimate)

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    First of all, to use the little automatic code things, do this:

    [code]
    Your code goes here!
    [/code]

    And here's your code:
    Code:
    Private Sub Command1_Click()
        Call Shell("<whatever>", vbHide)
    End Sub
    Enjoy!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344

    I do that then

    i do that and then it highlites shell and says expected identifier
    -RaY
    VB .Net 2010 (Ultimate)

  4. #4
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Question Expected identifier?

    Hmm, that's strange...
    How (exactly) does the line with Shell in it look like in your code?
    Whatever it is, you'll get over it.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344

    Exactly

    exactly how you wrote it
    [code]
    Private Sub Command1_Click()
    Call Shell("<whatever>", vbHide)
    End Sub
    [\code]
    -RaY
    VB .Net 2010 (Ultimate)

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344

    Well with my dir

    [code]
    Private Sub Command1_Click()
    Call Shell("<\\lab_techs\c\", vbHide)
    End Sub
    \code
    -RaY
    VB .Net 2010 (Ultimate)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width