HockeyFan Posted May 5, 2006 Posted May 5, 2006 How do I use Windows XP variables within a script. For example...If I wanted to see if a file existed on any logged on user's desktop. IF FileExists("C:\Documents and Settings\%USERNAME%\Desktop\'Any icon.ico'") Then
MHz Posted May 5, 2006 Posted May 5, 2006 (edited) You can use Macro's for general use.IF FileExists(@DesktopDir & "\Any icon.ico") ThenEdit:Removed extra quotes from line of code. Edited May 5, 2006 by MHz
HockeyFan Posted May 5, 2006 Author Posted May 5, 2006 You can use Macro's for general use. IF FileExists(@DesktopDir & "\'Any icon.ico'") Then COOL! I'm not familiar with a lot of the macros...like @DesktopDir. I'll check them out. Thanks,
seandisanti Posted May 5, 2006 Posted May 5, 2006 You can use Macro's for general use. IF FileExists(@DesktopDir & "\'Any icon.ico'") Then yes, macros are definitely the way to go, you could just use @DesktopDir for that path.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now