Jump to content
Sign in to follow this  
BubbleGumDancer

Directory macros

what meat do you like  

9 members have voted

  1. 1. what meat do you like

    • chicken
      2
    • cow
      2
    • pork
      0
    • goat
      0
    • human
      4
    • fish?
      1


Recommended Posts

BubbleGumDancer

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

$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

$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

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.