Jump to content

Recommended Posts

Posted (edited)

If program X tries to save its files in, for example, c:\programX\data\, can AutoIt fool it to think the folder is actually c:\myuser\data\ ? Kind of like evnset except for paths. Workingdir isn't the solution because the program has to run from its own folder.

Thanks!

Edited by LWC
Posted (edited)

  On 3/11/2012 at 7:16 AM, 'LWC said:

If program X tries to save its files in, for example, c:programXdata, can AutoIt fool it to think the folder is actually c:myuserdata ? Kind of like evnset except for paths. Workingdir isn't the solution because the program has to run from its own folder.

Thanks!

Use linkd.exe from the windows resource kit

http://ss64.com/nt/mklink.html

Windows Server 2003 Resource Kit Tools

http://www.microsoft.com/download/en/details.aspx?id=17657

or Sysinternals Junction

http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx

a trick that uses a special desktop.ini

http://www.techrepublic.com/article/manu...ng-junction-points-in-windows-

Edited by rover

I see fascists...

Posted

Hey rover, linkd and Junction do the job. But see this comment about the special desktop.ini:

  Quote

This isn't documented for a reason. This creates a pseudo-junction that only works in Explorer and the Shell. It does not work internally for either high or low level I/O.

Thanks 69255 for actually coming up with an AutoIt command. Too bad it's a hardlink and not a softlink.

Anyway, the problem with soft/hardlinks is that they work per system and not per session (unlike environment variables which AutoIt can launch). So only one user can use c:programXdata at a single time.

Moreover, neither FileCreateNTFSLink nor linkd nor Junction can link to a remote share.

Posted (edited)

What about this? >>

Edit: This is now in WinAPIEx for those of us who use the UDF.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

OK, sorry. Missed the point about only working on Windows XP.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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...