MSFN Forum: Computer names with spaces in Windows 98se - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Computer names with spaces in Windows 98se Why can I set it with a space when I'm not supposed to? Rate Topic: -----

#1 User is offline   soporific 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 705
  • Joined: 12-June 05

Posted 03 December 2006 - 11:27 PM

Hi there :hello:

I'm just finalizing some code for the upcoming alpha release of v4 of the unattended boot cd for Windows 98se and I've come across an interesting curiosity regarding computer names ...

I didn't know what the limitations were for computer names in Windows 98se so I thought I'd test them out. I knew there was a character number limit (its 15) and so the code checks for that. Next, I thought that you definitely can't have any spaces in the name so I checked for that. It seems you can!!!

I tried using "Blank space" (by going into Network Neighborhood properties , and then the Identification tab) and it accepted it with no worries. I was able to view shared folder files on the network with no worries. But when I tried to set a name with spaces using the Windows XP networking tool, it said that I couldn't use spaces in the name.

My question is: which is right? Can you use spaces or not?

My research threw up this page: http://www.microsoft.com/technet/archive/w...4.mspx?mfr=true

which says there must not be any blank spaces. So why does it seems to work?

Any help much appreciated! :thumbup

Here's a screenshot of me being able to see via the network, the computer with the blank space in the computer name --- weirdness !!!! :wacko:
Posted Image
And yes i can view the files in those directories.


#2 User is offline   LLXX 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,399
  • Joined: 04-December 05

Posted 05 December 2006 - 06:30 PM

Does it really matter?

#3 User is offline   Jaqie Fox 

  • Genuine Girl Techie
  • PipPip
  • Group: Members
  • Posts: 174
  • Joined: 30-November 06

Posted 05 December 2006 - 06:35 PM

Patient: "Doctor, when I hold my arm like this, it hurts!"
Doctor: "Well, then don't hold your arm like that!"

#4 User is offline   oscardog 

  • Member
  • PipPip
  • Group: Members
  • Posts: 234
  • Joined: 29-June 06

Posted 05 December 2006 - 06:56 PM

soporific it does matter from a boot point of view, Jaqie Fox can you practice your adolesence elsewhere

#5 User is offline   Jaqie Fox 

  • Genuine Girl Techie
  • PipPip
  • Group: Members
  • Posts: 174
  • Joined: 30-November 06

Posted 05 December 2006 - 06:59 PM

Excuse me? I was trying to give you honest and helpful advice in a humorous manner.

This post has been edited by Jaqie Fox: 05 December 2006 - 07:15 PM


#6 User is offline   soporific 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 705
  • Joined: 12-June 05

Posted 05 December 2006 - 07:28 PM

View PostLLXX, on Dec 6 2006, 10:30 AM, said:

Does it really matter?

Yes, yes & yes.

Yes, from the point of view that I'd prefer my projects to work and not crash people's computers. If I go ahead and not restrict spaces in the computer name, this may occur.

Yes because I haven't written any code to restrict spaces, and I'd prefer not to if I don't have to.

And yes from the point of view that understanding stuff is always better than not understanding it.

There's enough confusion already in the world!! I mean, most people don't recognise that capitalism is a system of exploitation and oppression when it totally is ...

#7 User is offline   LLXX 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,399
  • Joined: 04-December 05

Posted 06 December 2006 - 07:32 AM

Any problems arising from the use of spaces so far?

If not, then it's a good assumption that M$ just maybe was thinking about something else at the time.

I wouldn't put any restrictions in my code, only let the restrictions be the stricter of the code itself or the underlying API.

As in your case the API seems to be doing fine with it, I wouldn't worry.

Just like detecting invalid characters in a filename is the OS's job, and all you need to do is pass ASCIIZ strings to the functions.

It will eliminate many redundant checks in your code, and possibly make it forward-compatible.

An excellent example is the filename one above; back in the days of DOS I had already understood that the file paths for the (then) new filefunctions were passed as ASCIIZ strings, and did not make any assumptions about their content. Those programs back then that I wrote now work for long filenames with spaces and whatever else characters there are (as long as not null - because that was the delimiter), all because I made sure to not treat filenames as being in a fixed format (which is up to the OS to decide, after all.)

Same goes for your computer names. If your APIs use ASCIIZ strings, pass them what the user gives and don't care about what's in them.

#8 User is offline   soporific 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 705
  • Joined: 12-June 05

Posted 10 December 2006 - 07:22 PM

View PostLLXX, on Dec 6 2006, 11:32 PM, said:

Any problems arising from the use of spaces so far?

No, and I think your explanation makes good sense from what I'm experiencing. I haven't bothered to add any code to check for spaces ... I'll deal with it if it comes up. Thanks for your reply ...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy