Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   relative paths with copyfiles (http://forums.winamp.com/showthread.php?t=255354)

KlaasT 12th September 2006 18:28

relative paths with copyfiles
 
Hi.

I know relative paths are bad with copyfiles. But I have folders A with subfolder B. There there a 2 files in folder B and when one of the applications is executed it should copy this file from folder B back up to folder A.

For example

CopyFiles $EXEDIR\file.exe $EXEDIR\.. but somehow this idea won't work.

Have you got any idea of what I could use there?

Thanks

n0On3 13th September 2006 00:12

I guess the problem is the ".." on the last path.

If you can't come up with another way, you can use the function GetParent which I can't find at the moment.

http://nsis.sourceforge.net/Special:...etparent&go=Go

should be here, but sourceforge is lazy right now.

KlaasT 14th September 2006 17:37

I tried the getparent and inserted it. I used Push $EXEDIR however it still won't copy the file to the parent directory.

Any ideas?

Afrow UK 14th September 2006 17:39

It would help if you showed your code.

-Stu

KlaasT 15th September 2006 16:32

Ok. I just found the error. Got the paths wrong so my mistake.


All times are GMT. The time now is 04:42.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.