hotkey with copy to specific folder

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
mk8882
Posts: 3
Joined: Thu Feb 02, 2023 9:47 pm

hotkey with copy to specific folder

Post by mk8882 »

How to add hotkey eg. CTRL+F12 that woll copy selected files to specified folder?
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: hotkey with copy to specific folder

Post by void »

Currently, Everything doesn't have an option to do this.

I will consider adding an option to mark a folder and a command to paste to the marked folder.
Thank you for the suggestion.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: hotkey with copy to specific folder

Post by NotNull »

Not exactly what you are looking for, but this might bring you a step closer:

Option 1
:!: This requires Everything 1.5.
:!: Do not try this in Everything 1.4 as that will make Everything 'hang'
  • Go to menu:Tools => Options => General => Keyboard
  • In the Show commands containing: box, type advanced
  • Select Edit | Advanced | Advanced Copy to Folder...
  • Press the Add button
  • Use shortcut in = Resultlist
  • Shortcut key = 'CTRL + F12' (just press this keyboard shortcut)
  • OK
  • OK
  • Back in the main window, select your files
  • Press 'CTRL + F12'
  • In the appearing Copy To dialog, set New format: = c:\your favorite\folder\
    Note the \ at the end of the path.
    Don't change anything else.
  • OK
  • Done


The next time you want to copy files to c:\your favorite\folder:
  • Select your files
  • Press 'CTRL + F12'
  • In the appearing Copy To, select c:\your favorite\folder\ from the New format: dropdown list
  • OK
  • Done
(You can add multiple destinations this way to select from in the dropdown list)

This is not what Advanced Copy to Folder was intended for, but it does work well :D


Option 2
Everything 1.5 also has a Folder sidebar (menu:View => Folders)
You can (CTRL/SHIFT) drag files to the desired folder

A Favorites sidebar is in evelopment, which would make this even easier.
mk8882
Posts: 3
Joined: Thu Feb 02, 2023 9:47 pm

Re: hotkey with copy to specific folder

Post by mk8882 »

is there a way to create some external script, some .exe or .bat file
that will do predefine copy operation?
It could work and be universal solution
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: hotkey with copy to specific folder

Post by NotNull »

Yes, that is possible. Just write it. I think AutoHotKey is best suited for this.
(wouldn't call it universal, though. More like tailor-made)


Another alternative (works with Everything 1.4 too)
  • In Explorer's address bar, type the following and press ENTER
    shell:sendto
  • Create a new shortcut here to c:\your favourite\folder and give it a recognizable name (example: "Some name").
  • Close Explorer
Now you can:
  • Select your files in Everything
  • Right-click > SendTo > Some name
  • Done.
(untested)
mk8882
Posts: 3
Joined: Thu Feb 02, 2023 9:47 pm

Re: hotkey with copy to specific folder

Post by mk8882 »

I've made a .bat script file that work with drag and drop file

@echo off
xcopy /i /c /q /y "%~1" "\\192.168.3.1\test "

Crucial is to me to have simple file mark file , and with single CTRL+F12
How to achieve this?
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: hotkey with copy to specific folder

Post by therube »

I think that's were AutoHotkey (or similar) will come in.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: hotkey with copy to specific folder

Post by NotNull »

Same question was posted on the Listary forums ...
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: hotkey with copy to specific folder

Post by NotNull »

A (very) basic proof of concept how this could be done in AutoHotKey.
Limitations: Only handle files; not folders. Does not check if files were copied successfully. Will overwrite existing files without asking (I think). Only for Everything 1.4.
All limitations are easily solvable, btw.

Change Destination := "T:\klooi\dump" to the actual folder where files should land. Folder must exist.
Shortcut = 'WIN + Z'

Code: Select all

#SingleInstance Force
#NoEnv
SetBatchLines -1

;=========================================

Destination := "T:\klooi\dump"
NameColumn := 1
PathColumn := 2

;=========================================

#Ifwinactive ahk_class EVERYTHING
	#z::
	{
		ControlGet, $selected_files, List, Selected, SysListView321, A
		Loop, Parse, $selected_files, `n
		{
			$row_item := StrSplit(A_LoopField, A_Tab)
			$sourcefile := $row_item[PathColumn] . "\"  . $row_item[NameColumn]
			FileCopy, %$sourcefile%, %Destination%
		}
		MsgBox Seleced files copied to `n%Destination%
		return
	}
#Ifwinactive

Post Reply