If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > Directory Not Found PLZ help...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-18-11, 06:39
bluesaph bluesaph is offline
Registered User
 
Join Date: Mar 2011
Posts: 1
Directory Not Found PLZ help...

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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On