×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Running program on server using \\ServerName

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.

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

RE: Running program on server using \\ServerName

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

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

RE: Running program on server using \\ServerName

(OP)
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

RE: Running program on server using \\ServerName

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.

RE: Running program on server using \\ServerName

(OP)
alexit,

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

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.

RE: Running program on server using \\ServerName

(OP)
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

RE: Running program on server using \\ServerName

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close