|Razor, yeh you're right, i forget about the return-value version of api's is inside (). my bad and apologies for my dumbhead.|
Ooooh, i see, i think, " - open directory" is an acad
My vb will open a file on a mapped drive without any extra code, but that only applies to vb (as in "open H:\dahdah for input as #1" etc). It seems like the problem might be with acad, if it doesn't recognize network-drive mapping. if that's the case, might read up on acad's documentation to see if there's a setting in that application. I would think it's done all the time, so there should be a setting. only thing else i know to try is appactivate acad's window and sendkeys alt-f,o,filename:
Appactivate "Autocad -",1 (or whatever wintitle acad puts up). do shell acad without commandline argument.
Shell("C:\Program Files\AutoCAD 2008\acad.exe",1)
' 3-sec delay here for program to open:
sendkeys "H:\acadfiles\drawing3",true (or whatever)
this way, windows is maybe doing the open-op and not acad
sorry for my wrong info and not being more help.