Jump to content

Recycle bin & Logged in user question


Grated
 Share

Recommended Posts

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 ;)

Link to comment
Share on other sites

...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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...