You are here

How to connect the hosts.txt file to the program

3 posts / 0 new
Last post
Natacha1956
Offline
Last seen: 1 day 7 hours ago
Joined: 2025-08-17 04:55
How to connect the hosts.txt file to the program

Help me understand how to implement the function of adding my hosts.txt file to the c:\windows\system32\drivers\etc\hosts file in PortableApps in such a way that before loading (a copy of the original hosts file was made to the hosts_backup file name), it was added hosts.txt to hosts, and after closing the program, the hosts file was deleted from hosts_backup and renamed to the original name? Just write where to write the names of the .cmd or .bat files that will be run, because I can't find information about this in your documentation. Thank you.

John T. Haller
John T. Haller's picture
Online
Last seen: 45 min 19 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
OS Level Admin Rights

A hosts file is used at the OS level and requires admin rights to alter. Will you have admin rights on the machines you want to use it on?

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

Natacha1956
Offline
Last seen: 1 day 7 hours ago
Joined: 2025-08-17 04:55
Yes, I have Administrator

Yes, I have Administrator rights to run the program, yes it is my home computer. I have two scripts that can do what I need but I can't figure out how to add them to the portable program in the App\AppInfo\Launcher\(program)_portable .ini file

SLAVA UKRAINE!!!

Log in or register to post comments