You can create a small batch file that copies some blank txt or zip file into
the current folder. There isn't however a way to select that new file and
enter renaming mode for it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could also use the "%random%" tag so you can copy many files to the same
folder if you want to.
Just use:
copy c:\txtfile.txt txtfile_%random%.txt
Not sure how you can make it to copy it to the folder you are in though.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
True.. that works if I have the bat file on the current folder, but what I
want is to call that bat file form the classic shell tool bar in any folder
without the bat inside..
I think I have something wrong still?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK. Step by step.
Create a directory C:\Program Files\Classic Shell\BATCH
Move your blank text file to this directory. I will assume the file name is
"textfile.txt"
Create a batch file in this directory. I will assume the file name is
"action.bat". The content of the batch file should be:
copy C:\Program Files\Classic Shell\BATCH\Textfile.txt .\Textfile-%RANDOM%.txt
Create a new button on the Classic Shell Explorer toolbar. The command for
this button should be:
C:\Program Files\Classic Shell\BATCH\action.bat %1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd like to add buttons to the toolbar for single click creation of a text
file and single click creation of a zip file. What should the Command be?
You can create a small batch file that copies some blank txt or zip file into
the current folder. There isn't however a way to select that new file and
enter renaming mode for it.
You could also use the "%random%" tag so you can copy many files to the same
folder if you want to.
Just use:
copy c:\txtfile.txt txtfile_%random%.txt
Not sure how you can make it to copy it to the folder you are in though.
%1 can be used for the current directory.
Perfect. Thanks for the replies.
For those that are interested, the text file batch file is as follows (my
template file is in C:\Template):
copy C:\Temp\Textfile.txt %1\Textfile-%RANDOM%.txt
Hi all..
I'm trying to do something similar, I tested the command that (jimbo1962)
posted but didn't work:
Can somebody please help?
Thanks
This is my setup, is there anything wrong with it?
note that %RANDOM% must be in uppercase.
You have to have the command line IN A BATCH FILE, and the toolbar button must
call that batch file
Thanks jimbo1962..
It's working now, the file is created in the same place, how can I create it
in the current folder (a folder on desktop or D or E) for example.
Thanks
To create it in the folder currently displayed in the Explorer pane:
copy C:\Textfile.txt .\Textfile-%RANDOM%.txt
i.e. use .\ to specify "current directory"
True.. that works if I have the bat file on the current folder, but what I
want is to call that bat file form the classic shell tool bar in any folder
without the bat inside..
I think I have something wrong still?
Thanks
OK. Step by step.
Create a directory C:\Program Files\Classic Shell\BATCH
Move your blank text file to this directory. I will assume the file name is
"textfile.txt"
Create a batch file in this directory. I will assume the file name is
"action.bat". The content of the batch file should be:
copy C:\Program Files\Classic Shell\BATCH\Textfile.txt .\Textfile-%RANDOM%.txt
Create a new button on the Classic Shell Explorer toolbar. The command for
this button should be:
C:\Program Files\Classic Shell\BATCH\action.bat %1
I had to put the path in the batch file in quotes, to make it work for me (on Windows 8 Enterprise):
copy "C:\Program Files\Classic Shell\BATCH\Textfile.txt" .\Textfile-%RANDOM%.txt
Perfect, thanks for reply, its exactly what I need.
Regards