BubbleGumDancer 0 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. Share this post Link to post Share on other sites
Richard Robertson 187 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. Share this post Link to post Share on other sites
BubbleGumDancer 0 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. Share this post Link to post Share on other sites