PDA

View Full Version : .bat file for setup files


Major Del
23rd June 2010, 12:07
Could anyone send me a link to a .bat file that allows you to double click on .set file once they are downloaded (presumably into your default download file) and they get copied into your setup folder in your LFS directory instead of copying and pasting it manually.

boothy
23rd June 2010, 12:15
If you have installed LFS Z28 then just open a setup file and it'll copy over.

Lible
23rd June 2010, 12:45
Right click on a .set file, click properties.
Press the 'Change...' button next to 'Opens with'
Choose LFS from the list, if it is not on the list, click browse and select LFS.exe.
Tick 'Always use the selected program to open this kind of file'
Press OK and it will work as you wanted.

rockclan
23rd June 2010, 14:22
Right click on a .set file, click properties.
Press the 'Change...' button next to 'Opens with'
Choose LFS from the list, if it is not on the list, click browse and select LFS.exe.
Tick 'Always use the selected program to open this kind of file'
Press OK and it will work as you wanted.


Nice and fast answer.

Will try this myself aswell.

Does this also mean this setup is automaticly added to LFS setups?

Ripley
23rd June 2010, 14:35
If you have installed LFS Z28 then just open a setup file and it'll copy over.
What boothy was saying, is that you just have to "double-click" on a downloaded *.set file (or *.lyt, *.spr, *.mpr) to copy it to the correct folder.
This feature is available if you have latest LFS Z28.

Lible
23rd June 2010, 22:22
The installer of LFS should do the associating automatically, but sometimes it doesn't work (or the user doesn't use the installer, but uses a .zip file). Then you will need to associate it manually like I described. The original poster obviously didn't have it properly associated, because he wanted a .bat file which would allow doubleclicking a .set file and I'm sure he tried the doubleclicking before requesting such a feature.

@Rockclan - this copies the setup file to the LFS setups folder

herki
24th June 2010, 08:15
Not a .bat, a .reg file:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.set]
@="set_auto_file"

[HKEY_CLASSES_ROOT\set_auto_file]
@="LFS Setup File"

[HKEY_CLASSES_ROOT\set_auto_file\shell]

[HKEY_CLASSES_ROOT\set_auto_file\shell\open]

[HKEY_CLASSES_ROOT\set_auto_file\shell\open\command]
@="\"C:\\Your\\Path\\To\\LFS.exe\" \"%1\""

Ripley
24th June 2010, 09:16
...or the user doesn't use the installer, but uses a .zip file). Then you will need to associate it manually like I described...Oh yes, of course! I didn't think about that.

rockclan
25th June 2010, 10:56
@Rockclan - this copies the setup file to the LFS setups folder

Thanks for telling me, I never knew that in all the years that i've played LFS.

This is really nice since I have loads and loads of setups from older versions, and other lfs folders, which are still useable and fast.

But since I do not want to copy them all before trying, this is a nice thing.

Ripley
25th June 2010, 18:14
Thanks for telling me, I never knew that in all the years that i've played LFS....It was first introduced with the last version of LFS, that's why you never knew about it!!