UVK Scripts - variable for drive letter

You need help to start using UVK? You have a doubt on a UVK feature? Post here!
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
SAMEtechAndy
Posts: 24
Joined: Fri Nov 03, 2017 3:13 pm
Location: Cheshire, UK
Contact:

UVK Scripts - variable for drive letter

Post by SAMEtechAndy »

Hi,
Is there a way I can specify a program to run that is outside of the %InstallSourceDir%. I would like to run a program that resides in another directory on the root of my flash drive, but cannot of course guarantee the drive will get the same letter in every system I use it on, so I'm looking to capture the drive letter.
Andy
Fred
Site Admin
Posts: 2357
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: UVK Scripts - variable for drive letter

Post by Fred »

Hi Andy.

You can use %InstallSourceDir%\.. to specify the parent directory of %InstallSourceDir%. Use %InstallSourceDir%\..\.. to specify the grand parent and so on.

Let's say %InstallSourceDir% is in F:\UVK. If you want F:\cCleaner.exe, specify %InstallSourceDir%\..\cCleaner.exe.

Hope it makes sense.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
SAMEtechAndy
Posts: 24
Joined: Fri Nov 03, 2017 3:13 pm
Location: Cheshire, UK
Contact:

Re: UVK Scripts - variable for drive letter

Post by SAMEtechAndy »

Many thanks Fred
Post Reply