**Hey Guys I need your help please!-RunDll32*+

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Cherry69
Posts: 3
Joined: 03 Mar 2012 21:05

**Hey Guys I need your help please!-RunDll32*+

#1 Post by Cherry69 » 03 Mar 2012 21:18

Guys I need your help please!
How come when I run this cleanup script from system32 it works fine,
but if I try to run from the desktop it gives me this RunDll32.exe error?
I would rather run from my desktop and not as shortcut.
if any of you know How in my batch file I would really appreciate it!
Thanks for your help, Cherry

see below cleaner.bat script
+====================================================+
@echo off
color a
title [ Windows 7 X64 Browser and File Clean-Up ]
:=========================+
:Clean IE9 with gui
:Temporary Internet Files
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
:Cookies
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
:History
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
:Form Data
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
:Passwords
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
:Delete All
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
:Delete All – “Also delete files and settings stored by add-ons”
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
:Combine the numbers to get 2 or more functions at the same time.
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 9
:=========================+
:FLASH PLAYER COOKIES:
set FlashCookies=C:\Users\%USERNAME%\AppData\Roaming\Macromedia\Flashp~1
del /q /s /f "%FlashCookies%"
rd /s /q "%FlashCookies%"
:=========================+
:APPLE SAFARI:
set DataDir=%userprofile%\AppData\Local\Applec~1\Safari
set DataDir2=%userprofile%\AppData\Roaming\Applec~1\Safari
del /q /s /f "%DataDir%\History"
rd /s /q "%DataDir%\History"
del /q /s /f "%DataDir%\Cache.db"
del /q /s /f "%DataDir%\WebpageIcons.db"
del /q /s /f "%DataDir2%"
rd /s /q "%DataDir2%"
:=========================+
:CHROME:
set ChromeDir=%userprofile%\AppData\Local\Google\Chrome\User Data
del /q /s /f "%ChromeDir%"
rd /s /q "%ChromeDir%"
:=========================+
:FIREFOX:
set DataDir=%userprofile%\AppData\Local\Mozilla\Firefox\Profiles
del /q /s /f "%DataDir%"
rd /s /q "%DataDir%"
for /d %%x in (%userprofile%\AppData\Roaming\Mozilla\Firefox\Profiles\*) do del /q /s /f %%x\*sqlite
:=========================+
:OPERA:
set DataDir=%userprofile%\AppData\Local\Opera\Opera
set DataDir2=%userprofile%\AppData\Roaming\Opera\Opera
del /q /s /f "%DataDir%"
rd /s /q "%DataDir%"
del /q /s /f "%DataDir2%"
rd /s /q "%DataDir2%"
:=========================+
:MS INTERNET EXPLORER:
set DataDir=%userprofile%\AppData\Local\Microsoft\Intern~1
del /q /s /f "%DataDir%"
rd /s /q "%DataDir%"

set History=%userprofile%\AppData\Local\Microsoft\Windows\History
del /q /s /f "%History%"
rd /s /q "%History%"

set IETemp=%userprofile%\AppData\Local\Microsoft\Windows\Tempor~1
del /q /s /f "%IETemp%"
rd /s /q "%IETemp%"

set Cookies=%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies
del /q /s /f "%Cookies%"
rd /s /q "%Cookies%"
:=========================+
:Recent Documents and Temp
del/q/s/f "%userprofile%\recent"
rd /q/s %temp% & md %temp%
rd/q/s %windir%\temp & md %windir%\temp
rd/q/s %homedrive%\temp & md %homedrive%\temp
echo.
echo +=============================================+
echo.
echo. ALL Done!
echo.
set /p =Press [ENTER] to EXIT and Close this Screen..
exit

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: **Hey Guys I need your help please!-RunDll32*+

#2 Post by foxidrive » 03 Mar 2012 21:51

try using this

"%windir%\system32\rundll32.exe"

Cherry69
Posts: 3
Joined: 03 Mar 2012 21:05

Re: **Hey Guys I need your help please!-RunDll32*+

#3 Post by Cherry69 » 03 Mar 2012 23:50

Thanks Foxi love, that works...
:wink:

Post Reply