Author Topic: Startapp with UNC path to file problem  (Read 2959 times)

0 Members and 1 Guest are viewing this topic.

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Startapp with UNC path to file problem
« on: May 11, 2005, 02:36:16 PM »
Code: [Select]
(startapp "//d22/Shared/Dominic/TextPad 4/TextPad.exe" "//d22/Shared/Dominic/AutoCAD_Custom/menusupport/Faganel.mnu");

Asks if I want to create:
"//d22/Shared/Dominic/AutoCAD_Custom/menusupport/d22/Shared/Dominic/AutoCAD_Custom/menusupport/Faganel.mnu"

See the repeat of the path?  First time using UNC paths.  Launches Textpad fine, but with the file error.  Little help please!!

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Startapp with UNC path to file problem
« Reply #1 on: May 11, 2005, 03:39:59 PM »
Is TextPad really on the shared drive?

How about using <drive letter>:/Shared/Dominic....
TheSwamp.org  (serving the CAD community since 2003)

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Startapp with UNC path to file problem
« Reply #2 on: May 11, 2005, 03:44:50 PM »
Just for gits and shiggles what does this return:

Code: [Select]
(findfile "//d22/Shared/Dominic/AutoCAD_Custom/menusupport/Faganel.mnu")
If a valid path is returned does this work --

Code: [Select]
(startapp "//d22/Shared/Dominic/TextPad 4/TextPad.exe"
    (findfile "//d22/Shared/Dominic/AutoCAD_Custom/menusupport/Faganel.mnu")
);
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Startapp with UNC path to file problem
« Reply #3 on: May 11, 2005, 03:47:46 PM »
I thought autolisp/acad had a problem with UNC's but couldn't find any info on it.
TheSwamp.org  (serving the CAD community since 2003)

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Startapp with UNC path to file problem
« Reply #4 on: May 11, 2005, 03:49:58 PM »
I think textpad is having problem resolving the file path with forward slashes. But if D2T is using this in a menu he won't want to use backslashes, ergo exploiting findfile which returns the path with backslashes.

/theory
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Startapp with UNC path to file problem
« Reply #5 on: May 11, 2005, 03:56:07 PM »
Double up on the first two '\'

Code: [Select]
(findfile "\\\\Dpw\\SYS\\users\\PW2N\\bat_files.zip")
"\\\\Dpw\\SYS\\users\\PW2N\\bat_files.zip"
TheSwamp.org  (serving the CAD community since 2003)

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Startapp with UNC path to file problem
« Reply #6 on: May 11, 2005, 04:42:57 PM »
SUCCESS!!!
Code: [Select]
[Edit this menu]^C^C^C(startapp "//d22/Shared/Dominic/TextPad 4/TextPad.exe" (findfile "//d22/Shared/Dominic/AutoCAD_Custom/menusupport/Faganel.mnu") );

Didn't need to double up the forward slashes.

New job...can't install programs, so that's why I'm running it off my shared folder off the network.  Even though no installation is needed for it, I didn't want to put it on this computer.

I was the "IT Manager" (among many other inherited titles :roll:)  at my old job.  I had full access to map drives and such, so no need for the UNC paths.  But now I'm at a much larger firm that has a company that takes care of all of that.