101
Finished Programs / Re: DONE: Please help me find that utility - "Something" To TXT ?
« Last post by AbteriX on September 04, 2014, 07:03 AM »"ThisIsMyFile.mp3 > ThisIsMyFile.txt"
How-to
- create a plain text file with name "ContextmenuCreateTXTFile.cmd"
- add: IF NOT EXIST "%~n1.txt" Null > "%~n1.txt"
- Below the "HKEY_CURRENT_USER\Software\Classes\*\shell\" subkey
- create a new subkey "Create TXT File from selected file" (the name of the context menu entry)
- create beneath a another subkey "command"
- and there change the (Default) REG_SZ and add the value "full\path\to\ContextmenuCreateTXTFile.cmd" "%1"
So you should get now:
HKEY_CURRENT_USER\Software\Classes\*\shell\Create TXT File from selected file\command
(Default) "full\path\to\ContextmenuCreateTXTFile.cmd" "%1"
OR for Folders:
HKEY_CURRENT_USER\Software\Classes\Directory\Shell\Create TXT File from selected name\command\
(Default) "full\path\to\ContextmenuCreateTXTFile.cmd" "%1"
Now right click any file, choose "Create TXT File", and you are done.
Works?
- - -
You can also do
"ThisIsMyFile.mp3 > ThisIsMyFile.mp3.txt"
IF NOT EXIST "%1.txt" Null > "%1.txt"
or even
"ThisIsMyFile.mp3 > ThisIsMyFile.BAK.mp3"
IF NOT EXIST "%~n1.BAK%~x1" Null > "%~n1.BAK%~x1"
- - -
And as a bonus:
IF NOT EXIST "%~n1.txt" Null > "%~n1.txt" & START "" Notepad "%~n1.txt"
Or better:
SET NewFile="%~n1.txt"
IF NOT EXIST %NewFile% Null > %NewFile% & START "" notepad %NewFile%
- - -
Another example:
HKEY_CURRENT_USER\Software\Classes\*\shell\Create BAK copy of selected file\command
IF NOT EXIST "%~n1.BAK%~x1" COPY %1 "%~n1.BAK%~x1"
HTH?


Recent Posts

I am after taking screen shots for documentation issues. (I mean here: just to see what have happened) They don't have to be that pretty. I assume I can live whit that 


Sorry)
Do differ this both configurations.
Sorry.