Jump to content
Sign in to follow this  
Grated

Recycle bin & Logged in user question

Recommended Posts

Grated

Hi,

I have 2 questions :P.

1) Is there a command to delete/empty a windows (XP) recycle bin?

2) Is there a way to know under wich user you are logged in on a PC? (XP)? (I want to get to a folder under the logged in user so if I get the logged in user, I can go there)

Thanks ;)

Share this post


Link to post
Share on other sites
herewasplato

...2) Is there a way to know under wich user you are logged in on a PC? (XP)? (I want to get to a folder under the logged in user so if I get the logged in user, I can go there)...

@UserName

...but be aware that the path "C:\Documents and Settings\....." may not be the same as the person logged on since a person can change their userid and the folder does not change.

Edit: FileRecycleEmpty()

Edit2: see @UserProfileDir

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×