Running program on server using \\ServerName
Running program on server using \\ServerName
(OP)
I am running a program that is located on our Server mapped to M.
Line of code from inside the program e.g.
That works fine, but what I am trying to do is use \\ServerName
e.g.
One of our sister companies cannot map to the letter M. They are using M as a server letter for the last 10 years.
I think the problem is the Space between Engineering and Central. Does anyone have any ideas of fixing this? I have tried to get IT to rename Engineering Central to Engineering_Central without luck.
Anyone have any ideas? I could not find any help in the VB help.
Line of code from inside the program e.g.
CODE
FileCopy "M:\Applications\SolidWorks\Executables\CopyFile.exe_
"C:\Program Files\SolidWorks\Executables\CopyFile.exe"
"C:\Program Files\SolidWorks\Executables\CopyFile.exe"
That works fine, but what I am trying to do is use \\ServerName
e.g.
CODE
FileCopy "\\ServerName\@Engineering Central\Executables\CopyFile.exe", _
"C:\Program Files\SolidWorks\Executables\CopyFile.exe"
"C:\Program Files\SolidWorks\Executables\CopyFile.exe"
One of our sister companies cannot map to the letter M. They are using M as a server letter for the last 10 years.
I think the problem is the Space between Engineering and Central. Does anyone have any ideas of fixing this? I have tried to get IT to rename Engineering Central to Engineering_Central without luck.
Anyone have any ideas? I could not find any help in the VB help.
Bradley
RE: Running program on server using \\ServerName
"\\ServerName\@Engin~1\Executables\CopyFile.exe
RE: Running program on server using \\ServerName
Thanks for the idea. I could not get it to work. I checked my path line several time to make sure it was right.
Bradley
RE: Running program on server using \\ServerName
Can you access the file in a CMD window by typing the UNC path and name? If not try change directory then directory list for each level, this should show shortnames of levels to use. You may have to check permissions at each level to do this. When you can get there by typing a full string you've got it.
RE: Running program on server using \\ServerName
In the CMD window I typed in \\ServerName\
Error said “The filename, directory name, or volume label syntax is incorrect.
Bradley
RE: Running program on server using \\ServerName
Try:
\\ServerName\@Engin~1
maybe look at variations of the folder too "Engine~1" or "@Engin~2" they should be eight character long and end in '~' and a number.
RE: Running program on server using \\ServerName
Thanks again for the help. I tried it all, nothing worked.
I did type it into the Run box and that does work.
Bradley
RE: Running program on server using \\ServerName
You get a star for this one. Boy do I feel stupid, you know how I was saying
\\ServerName\@Engineering Central\Executables\
Well the real path is:
\\ServerName\Engineering\@Engineering Central\Executables\
There was an extra Engineering that I was not seeing.
Thank you, without your help I would have given up.
Bradley