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

WinExec in VB.NET

Status
Not open for further replies.

damann

Technical User
Joined
Jul 19, 2000
Messages
114
Location
US
I recently upgraded my application from VB6 to .NET and noticed that my WinExec call doesnt work anymore. It cant seems to recognize it at all. Does anyone know why this is?


Old Code:
WinExec(BATCH_FILE & " " & f, SW_SHOWNORMAL)


New Upgraded Code:
Win.Winbase.WinExec(BATCH_FILE & " " & f, Win.ESW.SW_SHOWNORMAL)

Now it's telling me that WinExec is not a part of Winbase, when I get rid of all that Win.Winbase stuff it still doesn't recognize it... What am I doing wrong? Please let me know.


Thanks,
Damann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top