Results 1 to 5 of 5

Thread: msdos path problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    93

    msdos path problem

    hi,
    i want send this command to rar for compress a file:
    c:\teste new\teste
    but the folder have a space in the middle and for that reason the rar utility (that work in ms-dos) can see the folder.
    i have tryed (c:\teste~new) and (c:\teste~1) but the program can´t see the folder can anyone help me about the right name that i can use?
    thanks for your help

  2. #2
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: msdos path problem

    Quote Originally Posted by bybruno
    hi,
    i want send this command to rar for compress a file:
    c:\teste new\teste


    Actually I'm not clear what you asking.

    Anyway why do you want to use a DOS command to compress a file using rar. Put all the files in a single folder, right click on it, choose Add To "folder_name". It make a rar compressed file on the same location.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    93

    Re: msdos path problem

    hi,
    i using the rar dos version for compress files with command line
    i if use this the rar will compress the files that i want
    c:\rar.exe a destination source
    the problem is when i give a path that have a space the program can´t see the path example:
    if i do this:
    c:\rar.exe a destination c:\teste new
    the program can´t see the path
    in some time ago i use somethning like this: c:\teste~new or c:\teste~1
    to reach that path but i can´t remember the right way.
    with this way the program can see the path the problem is this:
    the program was write for work in dos but work nice under windows but when i give the names with space the program can´t reach the path.
    can anyone help me?
    thanks

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: msdos path problem

    you have 3 options:
    1. Use the dos path which is 6 letters and then ~1 so teste new is probably testen~1
    2. Enclose the path in quotes like this: DosRar.exe "c:\teste new"
    3. Download a free rar program that runs in windows (winrar) which also supports command line
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  5. #5
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: msdos path problem

    Quote Originally Posted by Lord Orwell
    3. Download a free rar program that runs in windows (winrar) which also supports command line
    This could be the easiest way, I think, rather than deal with DOS.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

Posting Permissions

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



Click Here to Expand Forum to Full Width