VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Opens Control Panel File (Debugged,Updated)

by Dipen Anovadia (19 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 31st August 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Opens Control Panel File (Debugged,Updated)

Rate Opens Control Panel File (Debugged,Updated)




'Desktop Properties @ Customize Desktop:
'OpenCPLFile "desk.cpl", ",@web"
'Time-Date Properties
'OpenCPLFile "timedate.cpl"

On Error Goto errOCF

Dim sFullCommand As String

'The command was incomplete in my previous code, sorry for that...

sFullCommand = "Rundll32.exe Shell32.dll,Control_RunDLL " & sCPL
'Commas ',' before arguments may not work with every cpl files
if Not (sArgs = "") Then _
sFullCommand = sFullCommand & "," & sArgs


Shell sFullCommand

Exit Sub
errOCF:
MsgBox Err.Description, vbCritical, "Error " & Err
Err.Clear
End Sub
'Comments are welcomed...

Download this snippet    Add to My Saved Code

Opens Control Panel File (Debugged,Updated) Comments

No comments have been posted about Opens Control Panel File (Debugged,Updated). Why not be the first to post a comment about Opens Control Panel File (Debugged,Updated).

Post your comment

Subject:
Message:
0/1000 characters