ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Verify logged on user. (https://www.scoobynet.com/computer-and-technology-related-34/266234-verify-logged-on-user.html)

monkeyboy 31 October 2003 12:11 PM

Does anyone know what unique ID gets copied to a local w2k machine when a user logs on for the first time?

I need to query this before allowing a batch file to run, to stop a backup of one users data going to someone elses network store.

Thanks

MB

SiDHEaD 31 October 2003 12:44 PM

%USERPROFILE% in XP, not sure bout others tho!


Andy

David_Wallis 31 October 2003 02:21 PM

logged on for first time?

Difficult, depending on roaming / mandatory profiles.. you could check for existence %userprofile% as said however, that would have been created by the gina so that fooks that..

You could check %username% for login.. depends what your end result is really.

David


All times are GMT +1. The time now is 02:29 AM.


© 2024 MH Sub I, LLC dba Internet Brands