|
-
Sep 1st, 2000, 07:00 AM
#1
Thread Starter
Hyperactive Member
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)
-
Sep 1st, 2000, 07:11 AM
#2
Guru
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!
-
Sep 1st, 2000, 07:21 AM
#3
Thread Starter
Hyperactive Member
I do that then
i do that and then it highlites shell and says expected identifier
-RaY
VB .Net 2010 (Ultimate)
-
Sep 1st, 2000, 07:25 AM
#4
Guru
-
Sep 1st, 2000, 07:48 AM
#5
Thread Starter
Hyperactive Member
Exactly
exactly how you wrote it
[code]
Private Sub Command1_Click()
Call Shell("<whatever>", vbHide)
End Sub
[\code]
-RaY
VB .Net 2010 (Ultimate)
-
Sep 1st, 2000, 07:50 AM
#6
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|