HockeyFan Posted May 5, 2006 Share 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 Link to comment Share on other sites More sharing options...
MHz Posted May 5, 2006 Share 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 Link to comment Share on other sites More sharing options...
HockeyFan Posted May 5, 2006 Author Share 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, Link to comment Share on other sites More sharing options...
seandisanti Posted May 5, 2006 Share 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. Link to comment Share on other sites More sharing options...
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