+ Post New Thread
Results 1 to 3 of 3
Windows Thread, Robocopy & long file names in Technical; We're trying to use Robocopy to copy some SQL files. The path is : f:\microsoft sql server\mssql$sims\mssql.1 I cannot get ...
  1. #1

    Join Date
    Dec 2007
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Robocopy & long file names

    We're trying to use Robocopy to copy some SQL files. The path is :

    f:\microsoft sql server\mssql$sims\mssql.1

    I cannot get robocopy to recognise 'microsoft sql server' . I've tried making it the short version micros~1 , also put quotes round it and also round the whole path, but it still won't recognise it.

    The data is in F:\mssql$sims\mssql.1 on some servers and they copy fine, so it's definitely the bit with spaces in that's causing the problem.

  2. #2

    tech_guy's Avatar
    Join Date
    May 2007
    Location
    That little bit in the middle of Little Old England
    Posts
    8,130
    Thank Post
    1,907
    Thanked 1,341 Times in 740 Posts
    Blog Entries
    3
    Rep Power
    394
    This is what we do with speech marks and robocopy and it works fine:

    "C:\Program Files\Microsoft SQL Server\Backup \\fs2\c$\temp" * /S /E
    Last edited by tech_guy; 18th January 2008 at 12:00 PM.

  3. #3
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34
    I think that tech_guy meant to say

    "C:\Program Files\Microsoft SQL Server\Backup" \\fs2\c$\temp * /S /E

    When you need to specify a file path that includes a space on a command line, the individual parameter should be enclosed in double quotes.

SHARE:
+ Post New Thread

Similar Threads

  1. Robocopy
    By acrobson in forum How do you do....it?
    Replies: 16
    Last Post: 22nd December 2007, 01:41 PM
  2. Robocopy question
    By switchflare in forum How do you do....it?
    Replies: 3
    Last Post: 18th October 2007, 07:25 PM
  3. Robocopy Gone Wrong
    By fawkers in forum Windows
    Replies: 2
    Last Post: 17th September 2007, 06:50 AM
  4. VBS File takes long time to load 1st time?
    By Samson in forum Scripts
    Replies: 3
    Last Post: 4th September 2007, 07:40 AM
  5. Robocopy questions...............!
    By Kyle in forum Windows
    Replies: 3
    Last Post: 28th January 2006, 07:20 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •