943,929 Members | Top Members by Rank

Ad:
Dec 10th, 2008
0

batch programming capabilities

Expand Post »
Hey folks,
I have a question for you. I have 4 computers that use a particular program that requires a login. But i only have 2 accounts. I have a command that works via batch file that launches the program and logs in but i dont know how to specify what account will be used. I will explain in pseudo code.

lets say the accounts are:
account1
account2

and the passwords are the same.

This would be on the computer
count = 1;
while(computer has not found false line)
{
if (first Line of serverFile == false) { then set the first line to 'true' and set the account to "account+count" } else { increment count }
}

then on a server there would be a txt or ini file...whatever works with a list
REM This file holds true false statements if accounts are in use if they are true they are in use.
false //this line represents account one
false //this line represents account two

So is this possible? If so can anyone guide me towards a website that could help me out with this?

Thanks PO!
Reputation Points: 10
Solved Threads: 4
Junior Poster
PhiberOptik is offline Offline
164 posts
since May 2008
Dec 20th, 2008
0

Re: batch programming capabilities

Hi,

I have read your post a number of times and I am not clear what you are trying to achieve, so a few questions and hopefully I might have a solution.

Are you saying you can only run an application on two PC's simoultaneously and therefore you wish to control the use of the application ?

Are all 4 PC's linked to a server ?

What operating system are PC's (and server running) ?

Denis
Reputation Points: 22
Solved Threads: 19
Posting Whiz
DenisOxon is offline Offline
345 posts
since Jan 2007
Dec 20th, 2008
0

Re: batch programming capabilities

Hey Denis,
I actually figured out a much better way of doing this, I wrote java program to do it for me.

Thanks! (And sorry for not marking post as solved I forgot I made this one)
Reputation Points: 10
Solved Threads: 4
Junior Poster
PhiberOptik is offline Offline
164 posts
since May 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Legacy and Other Languages Forum Timeline: Wave Algorithm
Next Thread in Legacy and Other Languages Forum Timeline: Lisp Polynomial manipulation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC