Some questions about the database

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Some questions about the database

Post by vsub »

1.Are adding folders from Indexes=>Folders added to the database?
2.Can a scan a folder that is not in the databse with a command line and not add that folder to the database.
3.What happens to the databse if you add just for example the dvd drive(I know that you can't)and then switch to another disk with different files on it.

I want to be able to scan a ram\flash\dvd\external hdd drive but not add the contents to the database
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Some questions about the database

Post by Stamimail »

1. Yes
2. Use the command line option -nodb
3. The database is updated according to your settings. Look at the options in Options > NTFS/ReFS

Please read in command_line_options about
-nodb
-instance

btw,
I think there is a bug with -nodb command at first run.
It does create a .db file at first run, and it shouldn't.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Some questions about the database

Post by NotNull »

vsub wrote: I want to be able to scan a ram\flash\dvd\external hdd drive but not add the contents to the database
This is something similar. With little effort it can be adapted to your need/wishes.
Longer ago I wrote something similar in (CMD) batch, It is posted on these forums somewhere, but can't find it right now.

@Stamimail: I noticed too that -nodb still created a database under circumstances. That could be solved by adding extra parameters to the command-line. (Of course) I don't remember which ones ...
I think I'm going to see if I can build a Powershell script for @vsub and experiment (again) with the -nodb parms.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Some questions about the database

Post by NotNull »

@Stamimail: it was the -quit that created the database. See code for the parameters to prevent that.


Instructions are the same as in the mentioned post.

Show-TempIndex.ps1

Code: Select all

#=============[ HELP txt ]==================================#

<#
.SYNOPSIS
  Specfy a drive or folder and this script will create a special Everything.ini and start Everything with it. It will folder-index this drive/folder. No database will be written to disk on exit. 
  
.DESCRIPTION
  Run a temp Everything.exe with a folder index of a drive or folder

.NOTES
  Version:        0.1
  Author:         NotNull
  Creation Date:  2018-03-06

.EXAMPLE
	Show-TempIndex
	Will ask for a foldername and indexes it's contents

.EXAMPLE
	.\Show-TempIndex D:
	Will index the contents of D:\
.EXAMPLE
	.\Show-TempIndex E:\Temp
	Will index the contents of E:\Temp
.EXAMPLE
	.\Show-TempIndex E:\Program Files
	Will index the contents of "E:\Program Files"
.EXAMPLE
	.\Show-TempIndex  -folderName E:\temp
	The official way of specifying parameters ....  
#>

#=============[ Parameters ]================================#

Param(
  [Parameter(Mandatory=$True,Position=1)]
   [string]$folderName
)


#=============[ CD to scriptfolder ]========================#
Set-Location $PSScriptRoot


#=============[ Exit running TEMP Everything ]==============#
Start-Process ".\Everything.exe" "-nodb -instance TEMPINDEX -quit" -Wait


#=============[ Create fresh INI ]==========================#
@"
[Everything]
last_options_page=13
run_as_admin=0
run_in_background=0
show_in_taskbar=1
show_tray_icon=0
minimize_to_tray=0
check_for_updates_on_startup=0
auto_include_fixed_volumes=0
auto_include_removable_volumes=0
auto_include_fixed_refs_volumes=0
auto_include_removable_refs_volumes=0
hide_on_close=0
folders="$($folderName.Replace('\','\\'))"

"@ | Out-File ".\Show-TempIndex.ini" -Encoding ASCII


#=============[ Start TEMP Everything ]=======================#

.\Everything.exe -nodb -instance TEMPINDEX -config .\Show-TempIndex.ini

Post Reply