Guy
Guy

Reputation: 325

Control windows explorer from C#

Is there a way to control windows explorer (file browser), programmatically from C#?

Upvotes: 2

Views: 1233

Answers (2)

Paolo Tedesco
Paolo Tedesco

Reputation: 57202

Check the shell libraries in the Windows API Code Pack. The code also comes with lots of examples.

About XP: I've never tried those libraries on XP (and I cannot right now), but I assumed that not everything is Win7/Vista specific. Maybe the shell libraries are not. Have you tried to compile one of the examples?

Upvotes: 2

Andy West
Andy West

Reputation: 12499

There is a file dialog for users to select a file, if that's what you mean. Have a look at the OpenFileDialog class.

Upvotes: 0

Related Questions