BubbleGumDancer Posted November 18, 2010 Share Posted November 18, 2010 Hello Today I'm trying to use directory macros to select a file. But I just have no idea how since I have never used @SystemDir I want to be able to select user32.dll and make it a variable. The rest of my script is fine I just dont want to have to open a full file path to open it. $sSourceFile = @SystemDir "User32.dll" If you were twice as smart, you'd still be stupid. Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 18, 2010 Share Posted November 18, 2010 $sSourceFile = @SystemDir & "\user32.dll" However, if you're using DllCall, you don't need to specify the path for system dlls. Link to comment Share on other sites More sharing options...
BubbleGumDancer Posted November 19, 2010 Author Share Posted November 19, 2010 $sSourceFile = @SystemDir & "\user32.dll" However, if you're using DllCall, you don't need to specify the path for system dlls. oh cool thank you XD If you were twice as smart, you'd still be stupid. 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