ebizsalman
MIS
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)
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.
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)
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.