Click here to Skip to main content
13,143,628 members (28,452 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I'm trying to open an autocad file on a shared folder but it fails with comexception saying file was not found, but file exists. Here's the code: ("filePath" is the path to the file and acApp is a reference to Autocad object.)


note: i have denied all users access to my shared folder and just one user can open or modify this folder and its sub files.i have logged on this user before trying to open my dwg file.
Posted 10-Dec-11 22:47pm
Updated 11-Dec-11 23:03pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If filepath is a variable then you should remove the quotes around it:

If not then try mapping the share folder to a drive name instead of using the \\computername\sharefolder syntax.
Wonde Tadesse 11-Dec-11 16:59pm
Mehdi Gholam 11-Dec-11 17:02pm
phoenix1167 12-Dec-11 3:01am
Thanks, but how can i map my path.the path is \\ServerName\SharedFolderName\ProtectedFolder\file.dwg
Abhinav S 12-Dec-11 5:20am
Exactly. 5.
Mehdi Gholam 12-Dec-11 8:59am
Mehdi Gholam 12-Dec-11 9:00am
net.exe map p: \\servername\sharedfoldername
phoenix1167 13-Dec-11 0:30am
Thanks, i have tried net.exe map p: \\servername\sharedfolder
but i have received this message :
"the syntax of this command is: NET [ACCOUNT | COMPUTER | CONFIG |...]".

i have tried net use instead of net.exe but i received a message like the above.

i have tried "net use \\servername\sharedfolder" finally however received this message : "The command completed successfully".but what does it mean?how can i get the map of my path?
Mehdi Gholam 13-Dec-11 1:24am
My appologies, net use p: \\...
phoenix1167 13-Dec-11 1:39am
I have received previous message again...?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 12 Dec 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100