Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete windows profile via VB6?

Status
Not open for further replies.

jtseltmann

Programmer
Jan 15, 2002
149
US
Did a search and cannot seem to find any information...I have a bunch of citrix servers that we need to do periodic maintenance on. I can successfully map a drive to each server amd delete the folder under "Documents and Settings" but I cannot seem to find any code that will allow me to do the equivilent of using the "My Computer/User Profiles/Delete" functionality in Windows. Can anyone point me in the right direction at least? In the past we had simply deleted the user folder under "Documents and Settings" but have learned from Microsoft that this is not the "clean" way of performing this task.

Anyone have any thoughts for me?
Thank you in advance.
 
Thank you for the tip...i have googled all I can think of and didn't get anything like this. I'll research further.

Thank you again!
 
Keep in mind that to use a utility like this one effectively from a VB6 program you'll need more than the simple intrinsic Shell() function.

Either use the Execute method from the Windows Script Host Object Model or else use a "shell pipe" component of some sort. Either method will allow your program to accept those prompts and answer them.

Or else just run the utility by hand.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top