forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


run CLSID ?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Rinauld Raymond
VDS Pirate
VDS Pirate


Joined: 22 Aug 2003
Posts: 32
Location: Aix (France)

PostPosted: Sat Aug 30, 2003 6:32 pm    Post subject: run CLSID ? Reply with quote

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Aug 30, 2003 6:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rinauld Raymond
VDS Pirate
VDS Pirate


Joined: 22 Aug 2003
Posts: 32
Location: Aix (France)

PostPosted: Sat Aug 30, 2003 7:08 pm    Post subject: Reply with quote

it doesn't work Crying or Very sad
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Aug 30, 2003 9:37 pm    Post subject: Reply with quote

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")


Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Rinauld Raymond
VDS Pirate
VDS Pirate


Joined: 22 Aug 2003
Posts: 32
Location: Aix (France)

PostPosted: Sun Aug 31, 2003 6:06 am    Post subject: Reply with quote

Same thing

It's the link to my connection control
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sun Aug 31, 2003 6:44 am    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Rinauld Raymond
VDS Pirate
VDS Pirate


Joined: 22 Aug 2003
Posts: 32
Location: Aix (France)

PostPosted: Sun Aug 31, 2003 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sun Aug 31, 2003 1:10 pm    Post subject: Reply with quote

Maybe you can use the vds(x)ras.dll:

http://www.vdsworld.com/index.php?page=search&keywords=xras

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Rinauld Raymond
VDS Pirate
VDS Pirate


Joined: 22 Aug 2003
Posts: 32
Location: Aix (France)

PostPosted: Sun Aug 31, 2003 3:28 pm    Post subject: Reply with quote

I'll had a look skit3000
thanks
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Sun Aug 31, 2003 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Sep 01, 2003 2:03 am    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Sep 01, 2003 3:38 am    Post subject: Reply with quote

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 Smile
Enjoy Very Happy

Regards

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Rinauld Raymond
VDS Pirate
VDS Pirate


Joined: 22 Aug 2003
Posts: 32
Location: Aix (France)

PostPosted: Mon Sep 01, 2003 11:53 am    Post subject: Reply with quote

ok thank you
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group