bn1z Posted February 8, 2023 Share Posted February 8, 2023 i want my script to run like this, with 2 variables as source and destination directories, and run the command mklink /j For my needs, use the command _WINAPI_CREATESYMBOLICLINK won't work, and I want to create Creates a Directory Junction. Thanks for everyone's suggestions, or can someone guide me Thanks for reading. As shown in the picture, it's my imagination, not my script Sorry I used google translate Link to comment Share on other sites More sharing options...
bn1z Posted February 8, 2023 Author Share Posted February 8, 2023 I found the script i needed, it's like this. Thanks everyone! Run("cmd /c mklink /j """ & $dest & """ """ & $source & """") Link to comment Share on other sites More sharing options...
Trong Posted February 9, 2023 Share Posted February 9, 2023 better: Run(@ComSpec & ' /c mklink /j "' & $dest & '" "' & $source & '"') //Run('mklink /j "' & $dest & '" "' & $source & '"') bn1z 1 Regards, 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