Question:
My recylce bin back on desktop?
jay
2012-12-20 22:24:57 UTC
My recylce bin back on desktop?
Three answers:
Jim
2012-12-20 23:07:17 UTC
- restore your desktop.ini file back to the desktop if you deleted it because hidden files are shown



- move all files off desktop, and compile and run the following c++ program:



//SHGetSpecialFolderPath http://msdn.microsoft.com/en-us/library/bb762204%28VS.85%29.aspx

//CSIDL http://msdn.microsoft.com/en-us/library/bb762494%28v=VS.85%29.aspx



//SHGetKnownFolderPath http://msdn.microsoft.com/en-us/library/bb762188%28v=vs.85%29.aspx

//KNOWN_FOLDER_FLAG http://msdn.microsoft.com/en-us/library/dd378447%28v=vs.85%29.aspx

//KNOWNFOLDERID http://msdn.microsoft.com/en-us/library/dd378457(v=vs.85).aspx

//CoTaskMemFree http://msdn.microsoft.com/en-us/library/ms680722%28v=vs.85%29.aspx



#include

#include

#include

#include

int main(void) {

char cs[MAX_PATH];

WSTR wpath[MAX_PATH];

PWSTR p=NULL;

bool result = true;

HANDLE htoken;



//these only work if folder / desktop / recycle bin is empty except for windows-made shortcuts



//2000/xp

if (SUCCEEDED( SHGetSpecialFolderPath( NULL, cs, CSIDL_DESKTOPDIRECTORY,FALSE ))) {

printf("desktop success\n");

} else {

printf("desktop failure\n");

}



if (SUCCEEDED( SHGetSpecialFolderPath( NULL, cs, CSIDL_BITBUCKET, TRUE ))) {

printf("bitbucket success\n");

} else {

printf("bitbucket failure\n");

}

//vista/7

p=NULL;

if ( SUCCEEDED( SHGetKnownFolderPath( FOLDERID_Desktop, KF_FLAG_INIT | KF_FLAG_CREATE | KF_FLAG_DONT_VERIFY, htoken,p))) {

printf("success\n");

} else {

printf("failure\n");

}

if (NULL!=p) {

CoTaskMemFree(p);

}

p=NULL;

if (SUCCEEDED( SHGetKnownFolderPath( FOLDERID_RecycleBinFolder, KF_FLAG_INIT | KF_FLAG_CREATE | KF_FLAG_DONT_VERIFY, htoken, p))) {

printf("success\n");

} else {

printf("failure\n");

}

if (NULL!=p) {

CoTaskMemFree(p);

}



return 0;

}



save this as c:\mingw\bin\fix-desktop.cpp and compile this with sf.net/projects/mingw and comile as follows from a cmd shell::

cd \mingw\bin

g++ fix-desktop.cpp

fix-desktop

(the above like will execute it.)

congrats, you have made your first c++ program. I may be able to port this to powershell at some point. there are better ways and rules to compile stuff than what I am saying here, but it gets the job done for now.



- use windows explorer



- windows explorer may have hung or died. use the link below to revive.



[I had to fix my code, just learned that there was a function I missed.]
Alejandro Ferry
2012-12-20 23:17:42 UTC
if you're using windows 7 ultimate that would be very easy,

just right click on the desktop and choose "personalize", a window will appear, and in the upper left corner you will find "desktop icons" just go into it and another window will appear, now tick the recycle bin click apply then you're done. i think will work also for some versions of windows 7 like professional and home premium.
Simply RED
2012-12-20 22:32:47 UTC
How to Restore a Missing Recycle Bin

http://www.ehow.com/how_7165377_restore-missing-recycle-bin.html

http://search.yahoo.com/search?p=missing+recycle+bin&ei=UTF-8&fr=moz35


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...