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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Common dialog control problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I have used the common dialog control on a form to create the open file window. Later in my application i open a dos program to which i send commands, using the command SendKeys. The trouble is what ever file path they have selected while using the open file window is used by the dos program when it searches for the files it needs. Is there any simple way to stop this linkage?

any help would be most appreciated,
Thanks
 
You can use the InitDir property of the CommonDialog control to tell it which directory to start in:

CommonDialog1.InitDir = "c:\dos"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top