You are here

Dealing with Existing Files

2 posts / 0 new
Last post
Jacob Mastel
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2007-06-13 19:36
Dealing with Existing Files

I'm working on updating my old AutoHotkey launcher with PAL. I've come to a bit of a roadblock though.

The easiest way I can think of is to store AutoHotkey.ahk (the default script AHK.exe will run) as well as a "ScriptSupport" folder in Data (to store any icons or supporting .ahk files the user might require). AutoHotkey.ahk will be moved to %documents% and the entire directory of ScriptSupport will join it.

I have been running into the problem of an existing AHK installation being in the way. Is there an ability built into PAL to rename or temporarily move that file if it already exists or do I need to write some custom code?

scriptdaemon
Offline
Last seen: 4 years 4 months ago
Developer
Joined: 2008-10-10 17:40
Automatic.

Assuming you're using FilesMove and DirectoriesMove, PAL will automatically backup any file or folder already on your file system before moving the file or folder from the portable app over.

Log in or register to post comments