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 


Running Control Panel applets directly from VDS

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 3 Source Code
View previous topic :: View next topic  
Author Message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Jan 29, 2002 10:02 am    Post subject: Running Control Panel applets directly from VDS Reply with quote

Instead of going through the Control Panel, you may open some of the applets placed there directly from VDS.

The basic VDS syntax will be:

Code:

RUN rundll32.exe "shell32.dll,Control_RunDLL FILENAME.cpl"
   REM or
RUN "control FILENAME.cpl"


where FILENAME.cpl is the name of one of Control Panel's .CPL files. Here is a list of some common files:

access.cpl - Accessibility Options
appwiz.cpl - Add/Remove Programs
desk.cpl - Display Properties
hdwwiz.cpl - Add Hardware Wizard (not Win9x)
inetcpl.cpl - Internet Properties
intl.cpl - Regional Settings
joy.cpl - Joystick Properties
main.cpl - Mouse and Keyboard Properties
mmsys.cpl - Multimedia Properties
modem.cpl - Modem Properties
netcpa.cpl - Network Properties (WinNT 4.0, Win2000, WinXP)
netcpl.cpl - Network Properties (Win9x)
nusrmgr.cpl - User Accounts (Win2000, WinXp)
odbccp32.cpl - ODBC Data Source Administrator
password.cpl - Password Properties (Win9x)
powercfg.cpl - Power Management
sysdm.cpl - System Properties
telephon.cpl - Telephony Settings
timedate.cpl - Date/Time Properties

Please note that each computer may not have all of the tools listed here, as not all Windows installations include all of these components. Also some files are not the same on all Windows versions, so when using these you should do some checks to see whether they are present on the system (Windows\System directory).


Some files contain more than one applet - to select a particular applet within the file, append a comma, an @ sign, and the number of the applet (starting from zero).
Example: launch the keyboard applet, which is the second applet within Main.cpl, you should use:

Code:

   RUN rundll32.exe "shell32.dll,Control_RunDLL main.cpl,@1"
     REM or
   RUN "control main.cpl,@1"



Furthermore some multi-section applets are designed so that they can be opened at a particular section.
You must specify the applet number (@0 for a single-applet file). Then append a comma and the section number.
Syntax:
RUN rundll32.exe "shell32.dll,Control_RunDLL FILENAME.CPL,@n,t"
- where FILENAME.cpl is the name of one of Control Panel's .CPL files
n is number of the applet within the *.CPL file (starting from zero),
and t is the number of the tab for multi-section applets (also starting from zero).

Example: This one launches the Date/Time Properties dialog and opens to the Timezone page:

Code:

   RUN rundll32.exe "shell32.dll,Control_RunDLL TIMEDATE.CPL,@0,1"
     REM or
   RUN "control TIMEDATE.CPL,@0,1"



Some more tricks:

The Fonts folder can be opened with this command:
Code:
RUN "control fonts"


The Printers folder:
Code:
RUN "control printers"


Greetz
Dr. Dread
8O

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Tue Jan 29, 2002 10:45 pm    Post subject: Reply with quote

To see which cpl files you have, you can open a DOS
box and type:

cd\windows

press the ENTER key, and type:

dir/s/p *.cpl

and press the ENTER key again.

This displays all cpl files in any/all subdirectories,
one page at a time. Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Sylvester
Valued Newbie


Joined: 31 Jul 2000
Posts: 43
Location: Boston, MA USA

PostPosted: Tue Jan 29, 2002 11:00 pm    Post subject: Reply with quote

Dr. Dread,

You are so cool! Smile

I was looking around for some of the information in this post and in your previous post titled "Opening System folders from VDS". I used to have a very limited list, but I lost it.

Thanks a bunch! Smile

I want to be like you when I grow up!!! (if ever) Very Happy

"Quidquid latine dictum sit, altum viditur"
"Si hoc legere scis nimium eruditiones habes."
"Cave canem...te necet lingendo"
Razz

_________________
Sylvester

In the immortal words of the great philosopher, Homer ... "D'OH!!!" 8O
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Jan 31, 2002 12:45 am    Post subject: Reply with quote

Heyyyy, that doggy is chasing that poor Nekko the Kity! Sad

At least my doggy is well trained and listens to commands. Watch and learn....


Sit!

Stand!

Sit!

Stand!

Good Doggy!


See how well he does! Smile

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Jan 31, 2002 3:29 am    Post subject: Reply with quote

Amazing! Wink I gotta trane(train?) my sheep like that...
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Sylvester
Valued Newbie


Joined: 31 Jul 2000
Posts: 43
Location: Boston, MA USA

PostPosted: Thu Jan 31, 2002 4:35 pm    Post subject: Reply with quote

Aww, but my little puppy just want to play! Can it be helped if the little kitty wants to be unsociable and runs away? Confused

My doggy listens to me too. Watch!

There he is, boy!

Go play with your new chew toy....
... oops umm.. pardon me, I meant ...
Go play with your new FRIEND! Laughing

Go get him!

Yeah! Good, puppy! Very Happy

_________________
Sylvester

In the immortal words of the great philosopher, Homer ... "D'OH!!!" 8O
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Thu Jan 31, 2002 7:07 pm    Post subject: Reply with quote

As you state yourself:

Cave canem...te necet lingendo - Yes, beware of the dog that he does not lick you to death !

Cool

Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Sylvester
Valued Newbie


Joined: 31 Jul 2000
Posts: 43
Location: Boston, MA USA

PostPosted: Sat Feb 02, 2002 1:04 am    Post subject: Reply with quote

Vah! Denuone Latine loquebar? 8O

Me ineptum. Razz Interdum modo elabitur. Very Happy

_________________
Sylvester

In the immortal words of the great philosopher, Homer ... "D'OH!!!" 8O
Back to top
View user's profile Send private message Send e-mail MSN Messenger
belushi
Newbie


Joined: 11 Jun 2002
Posts: 9
Location: Germany

PostPosted: Sun Jun 23, 2002 10:16 am    Post subject: a more detailed look at these... and even more! Reply with quote

I made a little help file (compiled as HTMLhelp *.CHM) that provides DETAILED information about that ControlPanel stuff - and a lot more Wink

Using this help you can not only open the control panel applet's root but the desired sub-tab directly! Also, it tells you how to call common system wizards (disk copy, add new hardware...), where to find some usefull registry informations (eg. system paths), etc. etc. Cool

Download (~13kb)

Happy clicking!
Dieter "Belushi" Rausch
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 -> Visual DialogScript 3 Source Code 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