i want to write a script which you can use on diffrent computers but i dont kno how to get to that file because ussernames are diffrent on each comp
like this is the place i want to get to
C:\Documents and Settings\[user]\Application Data\GarageGames\IAPlayer\products\www_instantaction_com\102\install\legions\preferences
but user is diffrent on each comp any way round it or solutions please?
files in MYComputer
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Use a variable for the UserID
Let>vUser=USER_NAME
C:\Documents and Settings\%vUser%\Application Data\GarageGames\IAPlayer\products\www_instantaction_com\102\install\legions\preferences
Or:
C:\Documents and Settings\%USER_NAME%\Application Data\GarageGames\IAPlayer\products\www_instantaction_com\102\install\legions\preferences
Or:
%USERDOCUMENTS_DIR%\Application Data\GarageGames\IAPlayer\products\www_instantaction_com\102\install\legions\preferences
------------------------------------
You can also use %OS_VER% to identify the Operating System.
Check out the Help on Using System Variables
Let>vUser=USER_NAME
C:\Documents and Settings\%vUser%\Application Data\GarageGames\IAPlayer\products\www_instantaction_com\102\install\legions\preferences
Or:
C:\Documents and Settings\%USER_NAME%\Application Data\GarageGames\IAPlayer\products\www_instantaction_com\102\install\legions\preferences
Or:
%USERDOCUMENTS_DIR%\Application Data\GarageGames\IAPlayer\products\www_instantaction_com\102\install\legions\preferences
------------------------------------
You can also use %OS_VER% to identify the Operating System.
Check out the Help on Using System Variables
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!