| View previous topic :: View next topic |
| Author |
Message |
Rinauld Raymond VDS Pirate


Joined: 22 Aug 2003 Posts: 32 Location: Aix (France)
|
Posted: Sat Aug 30, 2003 6:32 pm Post subject: run CLSID ? |
|
|
Hi
I have a shortcut on my desktop, with this link:
{BA126AD7-2166-11D1-B1D0-00805FC1270E}
How can i run this link in vds? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Aug 30, 2003 6:47 pm Post subject: |
|
|
You can do two things. You could use the run command to run your string (I don't know what it does, and if it works this way) like this:
| Code: | | run {BA126AD7-2166-11D1-B1D0-00805FC1270E} |
You can also use the run command to run your link:
| Code: | | run c:\documents and settings\username\desktop\link.lnk |
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
Rinauld Raymond VDS Pirate


Joined: 22 Aug 2003 Posts: 32 Location: Aix (France)
|
Posted: Sat Aug 30, 2003 7:08 pm Post subject: |
|
|
it doesn't work  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Aug 30, 2003 9:37 pm Post subject: |
|
|
| Skit3000 wrote: | You can also use the run command to run your link:
| Code: | | run c:\documents and settings\username\desktop\link.lnk |
|
It should be:
| Code: | | run @shortname("c:\documents and settings\username\desktop\link.lnk") |
 _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Rinauld Raymond VDS Pirate


Joined: 22 Aug 2003 Posts: 32 Location: Aix (France)
|
Posted: Sun Aug 31, 2003 6:06 am Post subject: |
|
|
Same thing
It's the link to my connection control |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Aug 31, 2003 6:44 am Post subject: |
|
|
I am not sure what operating systenm you are on or what this CLSID shortcut does. If I know I can probably help more.
You can try running it as follows :
| Code: | | SHELL open,Explorer, ::{BA126AD7-2166-11D1-B1D0-00805FC1270E} |
This I assume that it points to an OBJECT on your desktop. Else it may not work.
If you want more such functions you can download this one I put on my site:
http://codescript.vdsworld.com/VDS5src/Explorer_Commands.zip
Regards _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Rinauld Raymond VDS Pirate


Joined: 22 Aug 2003 Posts: 32 Location: Aix (France)
|
Posted: Sun Aug 31, 2003 1:05 pm Post subject: |
|
|
Hi CodeScript
Your script is usefull,
but does not work in this case.
Perhaps this help you?
I want to launch my conection window ( where I set my login and password ) to access the internet |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Rinauld Raymond VDS Pirate


Joined: 22 Aug 2003 Posts: 32 Location: Aix (France)
|
Posted: Sun Aug 31, 2003 3:28 pm Post subject: |
|
|
I'll had a look skit3000
thanks |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sun Aug 31, 2003 4:32 pm Post subject: |
|
|
| Quote: | | Maybe you can use the vds(x)ras.dll |
Yes, you can use this for controlling a dial-up connection from VDS. It's worth pointing out that this is rather an old DLL and it will give errors if run on a system that doesn't have dial-up networking software installed. If you're planning on distributing it with an app therefore you should only execute the EXTERNAL command if the user specifies that they want to use dial-up access. One of my Delphi progs based on the same RAS.PAS unit had this trouble - that's how I know about it. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Sep 01, 2003 2:03 am Post subject: |
|
|
Not a good solution but try this :
_________________________________________________________________________________________________________________________
| Code: | %H = @SUBSTR(@WINDIR(),1,2)
shell open,%H\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk |
I assume you are on XP/2k.
Using a dll or API would make it cleaner.
I will have a look when I get time.
Regards _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Sep 01, 2003 3:38 am Post subject: |
|
|
I don't know your operating system ! I assume you are on XP based on some problems you are encountering.
Are you trying to dial a connection ?
If you are on Win 9x try:
| Code: | | RUN RUNDLL32.EXE RNAUI.DLL,RnaDial ConnectionName |
If you are using WinNT/2K/XP, then try these:
To connect:
| Code: | | RUNH RASDIAL ConnectionName username password |
To disconnect :
| Code: | | RUNH RASDIAL ConnectionName /DISCONNECT |
To abort in between while dialing :
| Code: | %H = @SUBSTR(@WINDIR(),1,2)
WINDOW CLOSE,%H\WINDOWS\System32\RASDIAL.exe |
To get the connection status use:
| Code: | RUNH RASDIAL,PIPE
INFO @PIPE() |
username password need not be supplied if you have already stored it
in the conection settings as per documentation (but I don't think it works without supplying username password on XP - may be security related)
This is the details about the command just in case you need:
| Quote: | USAGE:
rasdial entryname [username [password|*]] [/DOMAIN:domain]
[/PHONE:phonenumber] [/CALLBACK:callbacknumber]
[/PHONEBOOK:phonebookfile] [/PREFIXSUFFIX]
rasdial [entryname] /DISCONNECT
rasdial |
And lastly:
If you want to use your shortcut then use it as below:
| Code: | | SHELL "",C:\Documents and Settings\UserName\Desktop\Connection.lnk |
Substitute user name with your windows username.
To imitate what this shortcut does is difficult.
You may note that the shortcut contains all the information about your
connection like phone number username domain and password(hashed).
So some security measures are implemented by the OS to prevent
somebody stealing your dialup passwords from the .lnk file easily and
therefore the access to this file is restricted.
Sorry if my elaborate answer bored you
Enjoy
Regards _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Rinauld Raymond VDS Pirate


Joined: 22 Aug 2003 Posts: 32 Location: Aix (France)
|
Posted: Mon Sep 01, 2003 11:53 am Post subject: |
|
|
| ok thank you |
|
| Back to top |
|
 |
|