Classic Shell
http://classicshell.net/forum/

Custom Button: Create File Note based on File Selected
http://classicshell.net/forum/viewtopic.php?f=8&t=2647
Page 1 of 1

Author:  bigbry2k3 [ Sat May 17, 2014 4:37 pm ]
Post subject:  Custom Button: Create File Note based on File Selected

I'm looking for a way to select a file, such as a setup.exe file and click a custom button that will automatically create a text file of the same name, i.e. setup.txt.

To be clear, if another example was that the file i selected was skype.exe then clicking the custom button would create a text file named skype.txt.

And could work for any file type such as lovesongs.mp3 - the button would create a lovesongs.txt file.

Hope this makes sense please reply if you need more clarification. Thanks.

Author:  Gaurav [ Sun May 18, 2014 1:37 am ]
Post subject:  Re: Custom Button: Create File Note based on File Selected  Topic is solved

For the custom command use this:

cmd /c echo > "%2.txt"

OR

cmd /c type NUL > "%2.txt"

Note that this creates files named Setup.exe.txt, Skype.exe.txt, and Lovesongs.mp3.txt.

I don't know of a way to omit the original file name's extension.

Author:  bigbry2k3 [ Tue May 20, 2014 9:07 pm ]
Post subject:  Re: Custom Button: Create File Note based on File Selected

Thanks GauravK,

I like the 2nd example a lot because it creates a text file that is blank.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/