Login scripts with spaces

Jonny Two Shoes

Expert Member
Joined
Nov 13, 2006
Messages
4,542
Reaction score
17
Location
Gauteng
Hi there,

I would just like to know if anyone has a definate easy fix for this.

We have some users on win2000 and some on winXP. Our login scripts work perfectly with win2000 but not XP.

I determined that the reason for this is that the path to the login script has a folder with a space between eg: ....South Africa\Johannesburg\login.bat

I read somewhere that if there are spaces between you can modify by for example ....%South Africa%\Johannesburg\login.bat. However the description for this is slightly vague.

Will this work, reason I cannot try is because Im only partially responsible for this and we have to log a call with Chicago to modify the script. We can't just go ahead and do it therefore I would like a definate fix before trying.

Thanks :) need any more info just ask
 
Last edited:
Why not just put in a "_" (underscore) in the place of the space?
 
So normal quotes will work then :)

Ye we cant change the South Africa to South_Africa or take out the space as the number of accounts we would have to change individually to note the change is too much :/

thanks all will try it out

If they all agree at corporate that is :p
 
the quotes should cover the whole pathname
"\south africa\johannesburg\login.bat"
or
\south%20africa\johannesburg\login.bat :P
 
after mucking about with it for a while, it looks like you'll need to change the format to use the %20, so it would be:

file://pc/folder/south%20africa/login.bat

or use "\\pc\folder\south africa\login.bat"

play around with it, best way to learn
 
Hey all. Sorry to revive an old thread but believe it or not the scripts still don't work and I have too many win2000 users to make the proper change for XP users.

The space issue between "South Africa" is still giving problems and believe you me I would change the path name in an instant if it didn't require so many formalities with Corporate Head office.

Anyway I have tried everything I can think of:

South%20Africa\Johannesburg\login.bat
"South Africa"\Johannesburg\login.bat
"South Africa\Johannesburg\login.bat"
\"South Africa\Johannesburg\login.bat\"
""South Africa\Johannesburg\login.bat""

Just a plain South Africa\Johannesburg\login.bat works for all win2000 users but not for XP users.

I access these user accounts using a Citrix client and they are all Active Directory accounts. The scripts are all running off a domain controller.

If anyone has any more suggestions please let me know :)
 
Last edited:
I have now also tried ... CHR(34) & "South Africa\Johannesburg\login.bat" & CHR(34)

Apparently CHR(34) is hex for double quotes and the ampersand executes the script in between :confused: well whatever it is it still did not work lol :)
 
is it possible to create a batch file, one folder up, that points to the correct file?

I also can't get it working on an XP system, damn irritating...

can you put the xp users in a new group and then use group policy to set the login script?
it definitely works with "\\server\south africa\login.bat" on my test server...
 
Last edited:
Believe it or not I have been told it is prohibited to create your own script here. For this I must contact someone in Chicago to create one for me :eek:

Also changing any folders on the domain controller is also prohibited :eek::eek:

Creating groups is a lengthy process of signed permission and authentication as well.

Now you can see why I am so stuck :( :)
 
Top
Sign up to the MyBroadband newsletter
X