Private Sub Command1_Click ()
Dim the PWD
Dim name
Dim mp
The PWD=Text1. Text
Name=Text2. Text
Mp=Text3. Text
Net Shell "CMD. Exe/c use & amp; Mp & amp; & The PWD & amp;/user: & amp; The name & amp; ", vbHide
The Shell "CMD/c start" & amp; Mp, vbHide
End Sub
Just learning VB some things don't understand, hope everybody greatly,
Want to write an input password is small programs can open sharing, he calls don't seem to have any net use variables can only use constants in VB, how to solve or have other method? Thank you
CodePudding user response:
Dim strCmd as stringThe SHELL command strCmd=you,
Then before the shell, the debug. Print strCmd, you will understand the problem is,