Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Robocopy-Dealing with blank in directory name  (Read 10184 times)

0 Members and 1 Guest are viewing this topic.

FrankGC

    Topic Starter


    Beginner

    • Computer: Specs
    • Experience: Experienced
    • OS: Windows Vista
    Robocopy-Dealing with blank in directory name
    « on: March 17, 2013, 08:22:21 PM »
    Hi,
    I have these commands in a batch file to copy Thunderbird archive emails to an external disk. For testing, I am running them from a DOS cmd prompt.

    Set  InPath="C:\Users\Owner\AppData\Roaming\Thunderbird\Profiles\2l2fhjja.default\Mail\Local Folders\Archives.sbd\2013.mozmsgs"
    Set  OutPath=\\EXTERNALDRIVE\Public\BackUp-Email\Sue-Email-Bkup\2013
    Robocopy  %InPath%\  %OutPath%  /COPY:DATS  /Log:EmailBkupLog.txt

    I get error 123 (0x0000007B accessing source directory C:\Users\Owner\AppData\Roaming\Thunderbird\Profiles\2l2fhjja.default\Mail\Local
    The file name , directory name or volume label is  incorrect

    The error is because Robocopy is not parsing Local Folders correctly because of the blank after Local
    I have tried the following
    two sets of quotes
    Set  InPath="C:\Users\Owner\AppData\Roaming\Thunderbird\Profiles\2l2fhjja.default\Mail\"Local Folders"\Archives.sbd\2013.mozmsgs"

    and-no quotes
    Set  InPath=C:\Users\Owner\AppData\Roaming\Thunderbird\Profiles\2l2fhjja.default\Mail\Local Folders\Archives.sbd\2013.mozmsgs

    and-entire path in quotes
    Set  InPath="C:\Users\Owner\AppData\Roaming\Thunderbird\Profiles\2l2fhjja.default\Mail\Local Folders\Archives.sbd\2013.mozmsgs"

    and this- I get no destination directory specified because of the quote around Local Folders
    Set  InPath=C:\Users\Owner\AppData\Roaming\Thunderbird\Profiles\2l2fhjja.default\Mail\"Local Folders"\Archives.sbd\2013.mozmsgs

    I need help in correctly specifying the input path.
    Thanks
    Frank C
    Win Vista Ultimate64 bit sp2
    FrankGC
    HP Envy  700-414
    Windows 10
    I. E. 9.0
    Office 2007
    ASUS Laptop
    Windows 10

    Ocalabob



      Rookie

      Thanked: 4
      • Experience: Familiar
      • OS: Windows 7
      Re: Robocopy-Dealing with blank in directory name
      « Reply #1 on: March 17, 2013, 08:57:44 PM »
      Greetings Frank,

      Quote
      Robocopy  %InPath%\  %OutPath%  /COPY:DATS  /Log:EmailBkupLog.txt

      Try dropping that backslash '\'  and using:

      Robocopy  %InPath% %OutPath%  /COPY:DATS  /Log:EmailBkupLog.txt

      Best wishes!

      FrankGC

        Topic Starter


        Beginner

        • Computer: Specs
        • Experience: Experienced
        • OS: Windows Vista
        Re: Robocopy-Dealing with blank in directory name
        « Reply #2 on: March 18, 2013, 09:36:02 AM »
        Thanks for the reply OcalaBob,
         That fixed it. I also had to put both paths in quotes because of the UNC addressing for the external drive.
        I fought that battle once before.
        Regards
        FrankGC
        FrankGC
        HP Envy  700-414
        Windows 10
        I. E. 9.0
        Office 2007
        ASUS Laptop
        Windows 10