empty RECYCLE BIN without confirmation

  • Thread starter Thread starter rhXX
  • Start date Start date
R

rhXX

hi all,

how i can empty recycle bin without confirmation. i need a cmd line
for this to include in a schedule process.

tks in advance
 
Newbie said:
rhXX

Please find attached the Win32 console application as I mentioned in
my previous post. I wrote this in native, unmanaged C++ & it doesn't
require any framerwork to run


To rhXX: I strongly recommend that you do *not* run the program Newbie Coder
sent attached to his message. We live in a crazy world, and you have to be
extremely foolhardy to run any executable file sent to you by a stranger in
a newsgroup.

The file may be perfectly innocuous, but I wouldn't risk it. I don't mean to
accuse Newbie Coder of anything, but you simply don't know. The file may not
even have been sent by the person who has posted here in the past under the
name of Newbie Coder; anybody can use any name he wants and masquerade as
anyone he wants. Or Newbie Coder's computer may be infected without his
realizing it, and files that he sends you may be similarly infected.

I wouldn't even recommend that you run an executable file if it appeared to
come from me, and I know I wouldn't send anyone anything malicious.
 
Ken,

I have been a coder for 27 years & I am in no way in any habit of writing
malicious code whatsoever.

Besides adding these two different coded files to these posts I have
uploaded them to websites for people to download & use for their own
purposes.

A few simple applications that I have written will sort the person out. It
just proves the steps I go to to help others. Just viewing that post the
other week of removing a system tray icon for a certain executable. I still
get mails from that person I helped in that particular post thanking me for
everything I have done. So, he appreciated it & I hope the OP on this post
does too.

If you look through the console apps I have added copyright info in the
versioning & written to the console window too.

I will continue to write code where necessary if it means it helps the OP
out because it just shows how others cannot help or aren't willing to go
that extra step like I am/do. One day the MVP Administrator will see that
too
 
tks to all!

may i have the source of the program in order to compile myself,
understanding how it works and be sure that .exe is not infected?

tks in advance
 
Oh come on. If you can compile it yourself then you should know how to write
it. All the API/Constants... are on MSDN or if you have like I do, then
Platform SDK 2003 R2

Why don't you ask Microsoft if you can have the code for Windows or ask
another coder who's program you like if you can have their source code?

The code is copyright of me. I was being nice & wrote it for you in two
languages, but I see you don't want it. So, I won't bother helping you again

Put it this way: No-one else in this newsgroup will go to the lengths I have
to help you. Why? Because they probably don't have the knowledge

Maybe one of the MVP's will Google search & point you to the download I
uploaded yesterday. Would you then use it then because its on the Internet?
LOL
 
Kelly,

Its true. I have been programming since February 1980. Started in Assembly
then Pascal, 5 years or more of C, 7.5 years of C++ & also started VB3 at
the same time as C/C++. Changed to VB5 from C++ 5 then VB6/C++ 6/Visual
J++/HTML/ASP 1.0 then VB.NET 2002/VB.NET 2003/ASP.NET 1.0 & 1.1, some C#
(but I have no interest) & now getting back into C++ 7.1/C++ 8.0. Its a
shame that I have Visual Studio 5 Enterprise, Visual Studio 6 Enterprise (2
licenses) then Visual Studio.NET 2002 Enterprise Architect (2 licences),
Visual Stusio.NET 2003 Enterprise Architech (2 licenses) & now have to lower
myself to Visual Studio.NET 2005 Professional (with MSDN Platinum
subscription) whereas I want Visual Studio 2005 Team Suite (with Platinum
subscription)

So, as you see, programming is my life, but I have also been supporting
Windows since 3.1; 3.11 for workgroups, 95, 98, 98 SE, ME, 2000 (Pro &
Servers), XP Home & Pro, 2003 Server & now Vista, which I was beta testing
(Beta1/Beta2/RC1/RC2) for Microsoft since around May 2006.

So, you could say that computers are my life, but programming is my first
love.

----------------------

Have you looked under my signature & seen 'it's just a name'?

One thing for you Kelly:

Why should someone trust your reg files on Kelly's Corner? Because they are
on the Internet, right?

People like 'Rock' point people to your site because they don't have the
knowledge to write the registry entries themself. Shocking for an MVP, isn't
it?

Look forward to seeing your posts in the newsgroup,
 
John John,

Partly right but not full

rhXX can look in the Platform SDK to find the answer

He can save himself a lot of grief & use the applications that I assed
 
john john, tks a lot!

newbie,

really it is VERY jokie to read your points of view. they were nicely
commented in our coffee break,my friends tks you!

really i thanks your for your notes from the other point of view, of
course not for the forbiden top secret classified info copyrighted to
you, but to allow me to know more faces in the human mind.

i began 10 years before you (1970), maybe that is a reason i liked a
lot your funny notes. it was a pitty that u didnt attached ur CV, but
i agree that it isn't easy attach some Gb ....., so i will not comment
about me because it will be more than e-10 yours ..... ;-)

sorry by my english, it is so poor as my prog knowledge ..... :-)

(i dont use LOLs because maybe copyright to your note ....)

best wishes of health, peace, love and happynest for all
 
John John,

That Yahoo link:

On page one is people asking how to do it & Win32 GUI apps you can download
& use.

Ironic you chose Yahoo because yesterday I wrote an application that removes
all the advertising on Yahoo Messenger 8 (all versions) :)) That's available
for download too

I have written the apps in 2 launguages especially for the OP but he don't
want to use them then its down to him

How do you know that the ones you've searched for aren't malicious code? You
don't. Just because they are available for download doesn't mean they are
safe.

I wonder what search position my utilities are in that search you done :))
Funny if the OP decided to download mine

But it just shows you going the extra step isn't worth it as people ignore
it anyway. Still the stats will add to my 13 downloads (23-25, 000 a week
approx) I have on the Microsoft site & the 30 or so I have on other sites. I
won't be losing any sleep over it

Have fun!!
 
Jokie?

jokie == funny????

from google tranlator:

graceful likeable laughing humorous comedian

????
 
I don't use Yahoo Messenger (or any other!). You don't get the point,
do you? The point is that it is generally not good practice to attach
files to newsgroup postings, and it is a bad idea for casual readers to
download and try to use these files. I certainly don't think that you
attached malicious code to your post but it would have been better to
refer the OP to your website or other download area for your files.
Often times in these groups you will see batch files or registry fixes,
but instead of attaching files the contents of the file is posted for
all to see and comment on. On very rare occasion specific requests are
made by posters for attached files but otherwise it is best to not post
these to the help groups.

John
 
John,

I understand what you're saying, but if I or any other user wants to attach
files to the post then you will never stop them

What is the difference of me creating a reg, vbs, exe file & attaching it to
the post or get a MVP to do a Google search & come up with the same thing on
a website? Both are equally as dangerous to the person downloading & it just
proves I have the knowledge & the Google linkers don't. Is this jealousy &
that's why they complain? I may sign my code in future then what will they
say? Still don't trust it because its came from a professional coder who has
added an anti-tamper proof seal. If that's the case then no-one should ever
download another piece of code off the net because you cannot trust it,
including the Microsoft code.

Not sure how long you have been in the industry, but do you remember that
Microsoft wrote an explorer worm? Therefore, you cannot trust them 100%
either

Another example:

McCrappy used to pick itself up as a virus. Should you trust McCrappy
software? I wouldn't touch McCrappy products with a barge pole, but others
will swear on it. I proved to Microsoft on 3 seperate occassions that
McCrappy was letting viruses through Hotmail

If people want to construct a simple virus then back in the Norton 5/2000
days Norton's manual told you how to create a virus & gave the user the
details there. Does that make Norton unsafe too?

So, where does this trust stop?

------------------------------------

Back to the post:

Maybe you'd prefer me to write a MSI to install a 40kb console application
which is a single exe or should I complicate it into a dll/calling
application?

I just saw rhXX's post & solved it before you or anyone else got involved in
the post EXACTLY what the OP wanted.

Never would I write malicious code or nor would I wish to. People who do are
sick for getting their kicks from doing so.

See you later John John,
 
Newbie Coder said:
John,

I understand what you're saying, but if I or any other user wants to attach
files to the post then you will never stop them

If you really understood what John said and why, you wouldn't need to be
"stopped"; you wouldn't do it in the first place. If you insist on
continuing to do it, it's true nobody can stop you, but you then can't
complain when people wonder about your motives. Also, as I have pointed
out before, why should thousands of people who don't want your file be
made to download it because you want to send it to a single poster?
What is the difference of me creating a reg, vbs, exe file & attaching it to
the post or get a MVP to do a Google search & come up with the same thing on
a website? Both are equally as dangerous to the person downloading & it just
proves I have the knowledge & the Google linkers don't. Is this jealousy &
that's why they complain?

Still singing that same tired old song? it's obvious who is jealous
here, LOL. You so crave that MVP recognition, don't you? It has been
explained to you many times why Rock and others you constantly attack
point posters to a site such as Kelly's for a .reg file fix, but I'll
try one more time. We don't know (unless the poster says so) whether
they know how to safely manually edit their registry; and before you say
it's easy, yes, I find it easy (and fun) too, but just a couple of
months ago we had an example where someone went into his registry for
the first time and then sent panicked posts convinced he had somehow
dragged some keys into the right-hand pane. It took quite a few
back-and-forths to discover that what he was describing was just
Regedit's normal appearance (values displaying in the right pane when a
key is open).

So it's a) safer when trying to help someone whose capabilities you
don't know and b) easier and less worrying for many OPs to point them to
an automated fix from a reputable source -- which Kelly's is. Clicking
on the .reg files at her site displays the content anyhow, so yes, I can
be sure there is nothing malicious there before recommending it. (This
also shows how silly your claim that "linkers" don't know the answer
themselves is: even if they didn't before, after a click on Kelly's
file, they would!) Anyone who prefers to do a manual edit can use the
file to identify the keys to change.

Why do you worry so much about proving how much you know? I've mentioned
before, if you are an expert we will soon realise it from your answers
-- you don't have to keep telling us how clever you are. I'm bemused too
that an ace programmer to whom syntax must be very important writes
things like "that search you done", "the code is copyright of me",
"another coder who's program you like", "he don't want to use them then
its down to him". Sorry, but it doesn't inspire much confidence.
 
Newbie said:
Ken,

I have been a coder for 27 years & I am in no way in any habit of
writing malicious code whatsoever.


As I pointed out, I did *not* accuse you of writing or distributing
malicious code. My point is that downloading and running executable code
from a stranger in a newsgroup is a foolhardy thing to do. It has nothing to
do with how long you have been writing code.

I've been writing code since 1962, and I would not advise someone in the
newsgroup to download an executable file even it appeared to come from me.
You have no idea whether a stranger is malicious or not, and you have no
idea whether it came from the person you think it came from or not.

Without accusing you or anybody else of anything malicious, it is simply
foolhardy to trust a stranger in a newsgroup in such a way. I urge everyone
in the newsgroups *not* to accept such a file from *anyone*, and I urge you
*not* to suggest to anyone that he accept such a file.
 
Back
Top