-
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
--------------------------------------------------------------------------------
-
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! :rolleyes:
-
I do that then
i do that and then it highlites shell and says expected identifier
-
Expected identifier?
Hmm, that's strange... :confused:
How (exactly) does the line with Shell in it look like in your code?
Whatever it is, you'll get over it. :rolleyes:
-
Exactly
exactly how you wrote it
[code]
Private Sub Command1_Click()
Call Shell("<whatever>", vbHide)
End Sub
[\code]
-
Well with my dir
[code]
Private Sub Command1_Click()
Call Shell("<\\lab_techs\c\", vbHide)
End Sub
\code