You are here

**(Resolved)** MoveFiles?

13 posts / 0 new
Last post
vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
**(Resolved)** MoveFiles?

Ok hopefully this can be done with [MoveFiles} I am using PA Launcher 2 beta 3

Here is situation:

I have a file called jajuk.bootstrap in the %USERPROFILE% directory. I have made a copy and placed it into the %PAL:AppData% directory. I would like to remove the original from the %USERPROFILE% and have it upon the start of the program write the AppData file to UserProfile folder. Then when program shuts down return it to the AppData folder.

I have tried ever combo I know of to accomplish this but can not do it Sad

I can not just erase the file without saving it otherwise the program will act as if it was a first use and then default back to userprofile. I have already internally taken care of changing the locale of the data from the program into the Data folder but can not figure how to do the above.

Mark Sikkema
Offline
Last seen: 12 years 6 months ago
Developer
Joined: 2009-07-20 14:55
[FilesMove] settings\jajuk.bo
[FilesMove]
settings\jajuk.bootstrap=%USERPROFILE%

should do the job!

BTW: it is : %PAL:AppDir% or
. . . . . . . . . %PAL:DataDir%, but it's not needed within the FilesMove section !
[edit: Please DO try to find your answers in the manual before asking]

Formerly Gringoloco
Windows XP Pro sp3 x32

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
Thanks

I Have been reading re-reading and re-reading the manual I even asked on IRC to Zach and script...no one new the answer. I trisd multiple combination to NO avail. It was recommended to ask Chris directly but since he was not available I thought I would throw it out too the public.

Thanks for reaffirming my beliefs about users who need help and those who are programmers.

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

Mark Sikkema
Offline
Last seen: 12 years 6 months ago
Developer
Joined: 2009-07-20 14:55
I was just revering to your

I was just revering to your signature,

When all else fails read the manual!

maybe it's not very appropriate !

Formerly Gringoloco
Windows XP Pro sp3 x32

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
I understand

Yup I understood and have been reading manual. What I meant was that when someone like me gets stuck there is always someone here to help. My confusion was in reading manual it was not clear that the file HAD to reside in settings directory, I wrongfully assumed that was just an example, so I figured it could reside any where as long as I pointed it to the correct locale. As for the signature line I will change it.

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

scriptdaemon
Offline
Last seen: 4 years 4 months ago
Developer
Joined: 2008-10-10 17:40
Like I said before, it's

Like I said before, it's relative to the data directory, and ../ didn't seem to work. I don't know if FilesMove will work.

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
Help

[FilesMove]
settings\jajuk.bootstrap=%USERPROFILE%

should do the job!

Ok that is what I have done and it still appears the program is not recognizing it. Everything works as I want When I leave a copy of the file in the UserProfile Directory of windows, when I remove it and try to let the launcher move it back and forth from settings all it does is create a new file nad not use the one I have saved in settings?

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 9 months ago
Joined: 2007-04-15 21:08
Data?

I presume you have this in Data?

It should be moving X:\PortableApps\ThingyPortable\Data\settings\jajuk.bootstrap to C:\Users\vf2nsr\jajuk.bootstrap.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
This is what I have

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 9 months ago
Joined: 2007-04-15 21:08
%PAL:DataDir%

[FilesMove] and [DirectoriesMove] are by design relative to %PAL:DataDir%. That's just the way they're meant to be used. You should not try to get out of it with .. or anything like that.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
Thanks

Thanks for the info Chris

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 35 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
No Going Up Directories

For future reference, always assume ..\ will not work unless specifically told it will. Most stuff does not properly support it. And things that do will often only partially support it.

Sometimes, the impossible can become possible, if you're awesome!

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 5 months ago
Developer
Joined: 2010-02-13 17:10
All Set

Thanks tro Gringoloco I guess I really need a secretary it was all a typo on my part

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

Log in or register to post comments