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

Problem with PVX.com

Status
Not open for further replies.
Aug 15, 2007
29
PK
Hi i am writing a code in .net but found an error when running it .Can any one tell me the problem with the code.The code is giving error on (objShell.run(PathHome & "\pvxcom.exe", 0, True)

Waiting for your reply


Const HKEY_CURRENT_USER = &H80000001
oReg = GetObject("winmgmts:\\.\root\default:StdRegProv")
PathHome = "C:\Program Files\Sage Software\MAS 90\Version4\MAS90" & "\Home"
oReg.GetExpandedStringValue(HKEY_CURRENT_USER, "Software\ODBC\ODBC.INI\SOTAMAS90", "Directory", PathHome)
oReg = Nothing
objShell = CreateObject("WScript.Shell")
objShell.run(PathHome & "\pvxcom.exe", 0, True)
objSHELL = Nothing

oScript = CreateObject("ProvideX.Script")
oScript.Init(PathHome)
 
Sorry didnot told the error.The error is

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in microsoft.visualbasic.dll

Additional information: The system cannot find the file specified.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top