F firewall_ie Registered User. Local time Today, 21:10 Joined Mar 31, 2003 Messages 20 May 30, 2003 #1 Hi does any one know the code that can run with a command button that will let me start the likes of defrag and Disk clean
Hi does any one know the code that can run with a command button that will let me start the likes of defrag and Disk clean
IMO Now Known as ___ Local time Today, 21:10 Joined Sep 11, 2002 Messages 723 May 30, 2003 #2 Defrag: Private Sub YourButton_Click() Application.FollowHyperlink "C:\WINNT\system32\dfrg.msc" 'Or where your dfrg.msc is End Sub Disk clean: Private Sub YourButton_Click() Application.FollowHyperlink "C:\WINNT\system32\cleanmgr.exe" 'Or where your cleanmgr.exe is End Sub IMO
Defrag: Private Sub YourButton_Click() Application.FollowHyperlink "C:\WINNT\system32\dfrg.msc" 'Or where your dfrg.msc is End Sub Disk clean: Private Sub YourButton_Click() Application.FollowHyperlink "C:\WINNT\system32\cleanmgr.exe" 'Or where your cleanmgr.exe is End Sub IMO
F firewall_ie Registered User. Local time Today, 21:10 Joined Mar 31, 2003 Messages 20 May 30, 2003 #3 is there modules to link
IMO Now Known as ___ Local time Today, 21:10 Joined Sep 11, 2002 Messages 723 May 30, 2003 #4 No, just add this line to the Onclick event of your button: Application.FollowHyperlink "C:\WINNT\system32\dfrg.msc" 'Or where your dfrg.msc is Or this line to another button OnClick event: Application.FollowHyperlink "C:\WINNT\system32\cleanmgr.exe" 'Or where your cleanmgr.exe is IMO
No, just add this line to the Onclick event of your button: Application.FollowHyperlink "C:\WINNT\system32\dfrg.msc" 'Or where your dfrg.msc is Or this line to another button OnClick event: Application.FollowHyperlink "C:\WINNT\system32\cleanmgr.exe" 'Or where your cleanmgr.exe is IMO
F firewall_ie Registered User. Local time Today, 21:10 Joined Mar 31, 2003 Messages 20 May 30, 2003 #5 it gives the error object required
IMO Now Known as ___ Local time Today, 21:10 Joined Sep 11, 2002 Messages 723 May 30, 2003 #6 Did you change this part of the code C:\WINNT\system32\dfrg.msc" 'Or where your dfrg.msc is to the path where "dfrg.msc" is found? IMO
Did you change this part of the code C:\WINNT\system32\dfrg.msc" 'Or where your dfrg.msc is to the path where "dfrg.msc" is found? IMO
F firewall_ie Registered User. Local time Today, 21:10 Joined Mar 31, 2003 Messages 20 May 30, 2003 #7 yes that part is ok still giving the same error I am using vb6 is that an issue
IMO Now Known as ___ Local time Today, 21:10 Joined Sep 11, 2002 Messages 723 May 31, 2003 #8 Check references, make sure none are missing. If you still get probs, post it and I'll take a look for you. IMO Last edited: Jun 2, 2003
Check references, make sure none are missing. If you still get probs, post it and I'll take a look for you. IMO