Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SDETERS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running program on server using \\ServerName 1

Status
Not open for further replies.

Standing

Mechanical
Jan 14, 2002
1,578
I am running a program that is located on our Server mapped to M.
Line of code from inside the program e.g.
Code:
FileCopy "M:\Applications\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"

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
 
Replies continue below

Recommended for you

Try using short filenames for those with spaces, this works sometimes...

"\\ServerName\@Engin~1\Executables\CopyFile.exe
 
alexit,

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
 
We have corporate rule to have no special characters or spaces in our naming system to avoid this type of issue...no help to you I know.

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.
 
alexit,

In the CMD window I typed in \\ServerName\
Error said “The filename, directory name, or volume label syntax is incorrect.


Bradley
 
You have to start with the first folder, you cannot jump to the server directly in UNC.

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.

 
alexit,
Thanks again for the help. I tried it all, nothing worked.
I did type it into the Run box and that does work.

Bradley
 
alexit,
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor