PDA

Click to See Complete Forum and Search --> : msdos path problem


bybruno
Jun 24th, 2007, 09:26 PM
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

eranga262154
Jun 24th, 2007, 11:20 PM
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.

bybruno
Jun 25th, 2007, 05:43 AM
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

Lord Orwell
Jun 25th, 2007, 05:50 AM
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

eranga262154
Jun 26th, 2007, 10:12 PM
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.