Jump to content

Recommended Posts

Posted

I need to find a way of displaying a list from a file based on somones logon name. This is so each pupil can have their current grades for every subject displayed on the background.

 

Any help is much appreciated.:getmecoat:

Guest TheLibrarian
Posted

What is the format of the file?

 

Straight text / csv would be easiest.

Guest TheLibrarian
Posted

This would display the lines from the csv file.

findstr /i /c:"search string" filename.ext

 

You could include that in a for loop, or redirect it to a temporary file / location.

 

Once you've isolated the information from the file, you can use BGInfo to display it on the desktop wallpaper.

Posted
One thing to bear in mind when you say "from a file" - if you're proposing having all the grades for all the students in 1 file, then searching it at logon with a script you are making that the full content of that file available to all students if they find where it's stored. You'd have to take the 1 file of grades and break it down into individual files for each student first then set appropriate permissions on each of these files for it to be secured properly. You could still do this with a script fairly easily - break the file down into individual %username%.txt files, use the cacls command to set permissions for %username%.txt to Read Only for %username%, call bginfo to display it...
Posted

Although a bit overkill... I'd suggest a php script on a web server accessing and querying the file (you can use ntlm to pass the username from client to server automatically), returning HTML which you can use as an active background. Should keep the file secure (as long as you sensibly hide it on the server, or you could take it a step further and stick it in a DB).

 

Cheers

 

Will

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...