files in MYComputer

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
neroflame
Newbie
Posts: 2
Joined: Sun Mar 07, 2010 5:20 pm

files in MYComputer

Post by neroflame » Sun Mar 07, 2010 5:26 pm

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?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Mar 08, 2010 3:33 am

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
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

neroflame
Newbie
Posts: 2
Joined: Sun Mar 07, 2010 5:20 pm

Post by neroflame » Mon Mar 08, 2010 10:51 am

That is exactly what i need thank you very much just wish i thought but this forum sooner

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts