I want to know how to open a file existing in a computer in vb 6.For example I want to open notepad when I click a button.notepad.exe exists in C:\WINDOWS\.So when I click the button notepad.exe should execute.Also tell me how can I generalise this to any computer(means computer where windows is installed in a drive other than C).
ohyeah
0
Unverified User
Recommended Answers
Jump to Postto open any exe use SHELL from vb6.0
Jump to PostPrivate Sub Command1_Click() Shell "C:\Windows\notepad.exe", vbMaximizedFocus End Sub
All 6 Replies
debasisdas
580
Posting Genius
Featured Poster
ohyeah
0
Unverified User
Jx_Man
987
Nearly a Senior Poster
Featured Poster
alidurrani
0
Newbie Poster
debasisdas
580
Posting Genius
Featured Poster
omoridi
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.