Can I use relative paths in a file list?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Elvis
Posts: 5
Joined: Thu Apr 05, 2018 10:58 am

Can I use relative paths in a file list?

Post by Elvis »

Can I use relative paths in a file list?
Yes, filenames are relative to the file list location.

Optionally use . and .. for locations relative to the file list location.

You can use \ at the start of a filename to specify a file relative to the root of the file list.

Specify a filename with a full path to override relative filenames.
How to use "." OR ".." in a file list?
Can you provide an example of this syntax?
thanks
void
Developer
Posts: 16752
Joined: Fri Oct 16, 2009 11:31 pm

Re: Can I use relative paths in a file list?

Post by void »

. example:
File list is saved in c:\folder
A filename in the filelist uses the following filename:
.\file.txt

Everything will see this file as c:\folder\file.txt
File file will be treated as relative to the efu filelist location.

.. example:
File list is saved in c:\folder
A filename in the filelist uses the following filename:
..\file.txt

Everything will see this file as c:\file.txt
File file will be treated as relative to the efu filelist location.

\x example:
File list is saved in d:\folder
A filename in the filelist uses the following filename:
\another folder\file.txt

Everything will see this file as d:\another folder\file.txt
The drive letter will match the same as location as the efu file.
Might be useful for CDRom/DVDRom drives that change drive letter and when the efu file is located on the CDRom/DVDRom.

non-absolute path example:
File list is saved in c:\folder
A filename in the filelist uses the following filename:
file.txt

Everything will see this file as c:\folder\file.txt
file.txt did not specify a fully qualified path, Everything will treat this the same as .\file.txt
Elvis
Posts: 5
Joined: Thu Apr 05, 2018 10:58 am

Re: Can I use relative paths in a file list?

Post by Elvis »

Image
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Can I use relative paths in a file list?

Post by NotNull »

  • Open your filelist.efu in a text editor (like Notepad) and:
    • option 1: replace every instance of "Z:\" with "\"
    • option 2: replace every instance of "Z:\Demo\" with ".\"
  • Save filelist.efu
Elvis
Posts: 5
Joined: Thu Apr 05, 2018 10:58 am

Re: Can I use relative paths in a file list?

Post by Elvis »

Thank you for your help.
List of files that can be exported as relative path?
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Can I use relative paths in a file list?

Post by Stamimail »

Elvis wrote:List of files that can be exported as relative path?
What doest it mean?
Maybe
Ctrl+Shift+C
and paste it in Notepad?
Elvis
Posts: 5
Joined: Thu Apr 05, 2018 10:58 am

Re: Can I use relative paths in a file list?

Post by Elvis »

Thank you for your help.
Feel like replacing absolute paths with relative paths in Notepad and importing them again into everything.
Using relative paths for positioning is a little weird.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Can I use relative paths in a file list?

Post by NotNull »

Elvis wrote:Thank you for your help.
Feel like replacing absolute paths with relative paths in Notepad and importing them again into everything.
Using relative paths for positioning is a little weird.
As far as I know, you can't create relative paths from within Everything.
Thing is that relative is, well, relative. You save your list *after* it has been build. And depending on where you save it, the (relative) paths are different.

And even when you run something like this command: everything.exe -create-file-list c:\temp\MyList.efu c:\temp -use-relative-path, it is still undecided if you want to replace "c:\temp\" with "\temp\" or with ".\" or any other variation.

(note that the option -use-relative-path does not exist)

P>S. Instead of Notepad you could use any other search/replace utility
void
Developer
Posts: 16752
Joined: Fri Oct 16, 2009 11:31 pm

Re: Can I use relative paths in a file list?

Post by void »

There is an ini option file_list_relative_paths that can be enabled to use relative paths (relative to the efu location) when saving the file list to disk.

This setting only works when using the -create-file-list command line option or when working with the File List Editor.
Elvis
Posts: 5
Joined: Thu Apr 05, 2018 10:58 am

Re: Can I use relative paths in a file list?

Post by Elvis »

void wrote:There is an ini option file_list_relative_paths that can be enabled to use relative paths (relative to the efu location) when saving the file list to disk.

This setting only works when using the -create-file-list command line option or when working with the File List Editor.
Image
The Everything.ini file does not exist in the same folder as my command line tool.
Do I need to create one myself? Like this?

Code: Select all

;file_name:Everything.ini
file_list_relative_paths=1
Can you provide an example? Thank you again for your help.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Can I use relative paths in a file list?

Post by Stamimail »

Find the Everything.ini file by Everything.
It should be by the Everything.EXE file ,
or in
%APPDATA%
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Can I use relative paths in a file list?

Post by NotNull »

Elvis wrote: The Everything.ini file does not exist in the same folder as my command line tool.
You don't need ES.exe in this case; the -create-file-list parameter belongs to Everything.exe.

Use @stamimail's suggestion to get to your Everything.ini
Post Reply