Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21246

[RESOLVED] vb6 and the shell command.

$
0
0
Hey there everyone, I am back again with another stumper that I can't seem to figure out. I have a program That I am trying to launch with the shell command. Only problem is that it wont run when I start it from vb6. It works fine when I open the command window and manually type the command in however. It is a command line smtp client called mailsend. I have tried everything to get it to work and really don't understand why it wont start up when it is in the same folder as the program even.
All that happens when I click the button is a window pops up for a millionth of a second and disappears before I can even see what it says too.

Code:

Shell (App.Path) & "\mailsend\mailsend.exe" & " -f attach.txt -from matt@thicomm.com -smtp smtp.1and1.com -port 587 -auth LOGIN matt@thicomm.com mypassword -to matt@thicomm.com -msg " & "test 123"
I am running Windows 7 Professional x64 bit and am logged into an administrator account with permission.

I can't even put the command in a bat file and have that bat file called by vb6 either. Please help, if this is confusing I can reclarify further if needed.

Thanks,
Matt

Viewing all articles
Browse latest Browse all 21246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>