LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "cannot access files or folders of an NTFS Win XP share if their names contain space" (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-access-files-or-folders-of-an-ntfs-win-xp-share-if-their-names-contain-space-750825/)

ramanujank 08-28-2009 04:37 AM

"cannot access files or folders of an NTFS Win XP share if their names contain space"
 
i can't;t access from linux the file which are in windows over network having space it is showing me the following error. and disappearing.

"The filename "Computer%20Manuals" indicates that this file is of type "folder". The contents of the file indicate that the file is of type "unknown". If you open this file, the file might present a security risk to your system.

Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for "unknown", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file."

need your help here.

tronayne 08-28-2009 07:19 AM

From the Linux side of the world you need to "escape" the space characters in Windows files; e.g., let's say you have a file "abc def ghi.txt" on Windows that you want to view in an editor:
Code:

vi {path_to_direcotry}/abc\ def\ ghi.txt
would do that. The back slant is the "escape" character (not an actual escape key character). You can use the same method for directory names too (Windows weenies seem bound and determined to create files and directories as sentences for some unknown reason). Also, if you have to deal with back slants in Windows file names, you use two back slants to escape the single back slant; e.g., if the Windows file name is "abc\def\ghi.txt," you would
Code:

... abc\\def\\ghi.txt
Hope this helps some.

XavierP 09-03-2009 02:09 PM

Moved: This thread is more suitable in Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 06:56 AM.