English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

5 answers

Because many programs parse the input parameters at the spaces. For example:

> someprog.exe input1 input2 input 3

The someprog program might see this as FOUR inputs
1) input1
2) input2
3) input
4) 3

The usual way to make sure this doesn't happen is to surround inputs with space with quotations.

> someprog.exe input1 input2 "input 3"

Now it sees three inputs, the last being input 3

2006-08-07 05:51:47 · answer #1 · answered by Anonymous · 2 0

If you are posting these files to the web then you should avoid spaces when naming, otherwise you can use spaces if you want to make things clearer to you. When posting files to the web, some of the older browsers have problems displaying the images or linking to the documents because it sees the space as the end of the filename. An example - if you named your image 'my image.jpg' and tried to add it to a webpage, the old browsers will look for 'my' only and ignore the rest of the name because it encountered a space. Newer browsers are 'smarter' about this and will URL encode the name to remove the space and replace it with a special character that represents the space - will change it to something like 'my%20image.jpg'

2006-08-07 09:32:37 · answer #2 · answered by jmfc 4 · 0 0

Its not usually a bad thing, usually its just a personal preference. However, some programs don't like spaces because a space means the end of the path to the file, such as:

"C:\Program Files\Internet Explorer\iexplore.exe"

could be read as:

"C:\Program"

because it thinks the space in Program files means that is where the file is and it should stop there. Most programs won't do this though. If a program is having trouble, put " around it and the program should read it fine.

2006-08-07 05:24:18 · answer #3 · answered by Bryan A 5 · 0 0

Because of the inconsistencies of various software to compile a data file with a blank space. MS Windows since Win95 has been able to compile long file names (those over 8 characters) but it is some software programs that cannot handle them. Therefore it is a good practice to use an "_" underscore rather than a space in naming files.

2006-08-07 05:21:08 · answer #4 · answered by The Flashman 4 · 0 0

Filenames with or without spaces are treated the same by WIN32 platforms. The filename are stored with pointers to their locations on the hard drive by the FAT (file allocation table).

For backward compatibility Microsoft's FAT still allows the old 8.3 format of filename when in a virtual DOS mode (as DOS is no longer part of the Windows system), for example the Command Prompt (cmd.exe). Here, when files are longer than 8.3 they are shortened to the first 6 characters, followed by ~1, then ~2, etc.

2006-08-07 10:32:37 · answer #5 · answered by sellis_sellis 2 · 0 0

fedest.com, questions and answers