Jump to content

Recommended Posts

Posted

:) 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
Posted (edited)

You can use Macro's for general use.

IF FileExists(@DesktopDir & "\Any icon.ico") Then

Edit:

Removed extra quotes from line of code.

Edited by MHz
Posted

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, :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...