[Batch] Help w/ Wierd Spacing Issue 03-04-2014, 02:37 AM
#1
Hey guys so right now I'm working on a really basic messenger system that can be used anywhere with open network locations such as a shared drive like those in schools.
Before I explain what the issue is, I thought it might be helpful to explain how the program works.
-User starts up a start-up batch program which starts by checking for a username.txt file in a folder labeled Data in the compressed folder that the messenger comes in.
![[Image: qilv.png]](http://img89.imageshack.us/img89/6493/qilv.png)
- If a username exists, it asks the user if they would like to change it.
- Otherwise it prompts the user to create a Username.
- Then it asks for a file location for the chat-room to be placed in or where it already exists and then runs a window for the sender and one for the receiver.
The issue comes when the User's name appears...
At first its normal, but if they choose to not change their username it adds extra space each and every time they start the program again.
I will link the three programs in text form so none of you get paranoid.
[attachment=103]
Please let me know why if you figure it out!
P.S. Go easy on me I'm just a Script Kiddie and I really only have some better-than-basic skills in Batch.
Before I explain what the issue is, I thought it might be helpful to explain how the program works.
-User starts up a start-up batch program which starts by checking for a username.txt file in a folder labeled Data in the compressed folder that the messenger comes in.
![[Image: qilv.png]](http://img89.imageshack.us/img89/6493/qilv.png)
- If a username exists, it asks the user if they would like to change it.
- Otherwise it prompts the user to create a Username.
- Then it asks for a file location for the chat-room to be placed in or where it already exists and then runs a window for the sender and one for the receiver.
The issue comes when the User's name appears...
At first its normal, but if they choose to not change their username it adds extra space each and every time they start the program again.
I will link the three programs in text form so none of you get paranoid.

[attachment=103]
Please let me know why if you figure it out!
P.S. Go easy on me I'm just a Script Kiddie and I really only have some better-than-basic skills in Batch.
Scientia potentia est
![[Image: inkexplosion.jpg]](http://i0.wp.com/techverse.net/wp-content/uploads/2013/09/inkexplosion.jpg)



![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)











