Hello,

Can anyone help me on this, I am unable to copy some dll's onto a folder(hrg1), i get a directory not found exception Exception from HRESULT: 0x800A004C (CTL_E_PATHNOTFOUND)...The code is as follows

Declaration...
objCurrentDir = WshShell.CurrentDirectory

this doesn work???
objFSO.CopyFile("&objCurrentDir&\SDAICC.dll", "C:\Program Files\Common Files\hrg1\")


here the CurrentDir Obj has the following path on my VS.net, if i hard code the path then the dll copies, for eg: given below i am specifying the path of objCurrentDir
This works...
objFSO.CopyFile("D:\Documents and Settings\hrg\My Documents\Visual Studio 2005\Projects\ActiveX111\ActiveX111\bin\Debug\SDAI CC.dll", "C:\Program Files\Common Files\hrg1\")

Thanks