Home > Software engineering >  Having a little problem with password is Shared
Having a little problem with password is Shared

Time:11-20


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 string
The SHELL command strCmd=you,
Then before the shell, the debug. Print strCmd, you will understand the problem is,
  • Related