Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Authomatic connection Shortcut???

Status
Not open for further replies.

VisualGuy

Programmer
May 27, 2003
162
US
Is there a way to setup an icon on your desktop, so that when you click on it, it automatically dials into the desired server's directory.

Normally, I have to double click on procomm plus. Then I click on the connection dictionary. Select one of my entries and then finally, click connect. I'd like to setup a specific shortcut that will do all of this (depending on the entry) just by having me double click on a shortcut.

Any ideas?
 
This command line will open Procomm and make a data connection to the Connection Directory entry name "Test":

"C:\Program Files\Symantec\Procomm Plus\PROGRAMS\PW5.EXE" connect data "Test"

aspect@aspectscripting.com
 
It didn't really work, but that's probably because I'm doing something wrong. I'm doing this in Visual Basic 6.0 and here is my code:

y = "connect data"
x = Shell("c:\program files\Symantec\Procomm Plus\PROGRAMS\PW5.exe " & y & " DirectApp", vbModal)

I've also tried this:

y = "connect data"
x = Shell("'c:\program files\Symantec\Procomm Plus\PROGRAMS\PW5.exe' " & y & " 'DirectApp'", vbModal)


Nothing seems to work here. The Connection Directory Entry is an FTP entry that I've created. What does work is the .exe. The first bit of code actually will successfully launch Procomm Plus. However, it doesn't then connect me to the client's site (DirectApp). What am I doing wrong here?
 
Knob,
thats cool. It worked from My Desktop :)
thanks
Paul
 
OK, didn't realize you were trying to make an FTP connection. In that case, change connect data to connect FTP. You may also need to edit your Connection Directory entry so that the default host directory is set to the folder you wish (if you have not done this already).


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top