Right click to add a . infront of a file name - Windows Users

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
[edit2] works now... i only tested in a root drive direcotry
[/edit]

i was tired of having to rename a file by opining something to rename it. So i did what all lazy people should, i made a small script to do it for me.

simply adds a "rename with a ." to the right click.


open notepad

put this into it
Code:
@echo off
%~d1
cd %~dp1
Rename %~nx1 .%~nx1
@echo on

go to your windows folder(or anywhere else thats has a path variable) and save as
RenameFileWithPeriod.bat

then part 2:

if you don't have a right click devicey thing, try awxShellFish (http://www.arniworld.de/downloads.htm)

add a command for it(rignt click any file/folder, go to shellfish, configure with shellfish, select global at top, and add this to the commandline:
Code:
RenameFileWithPeriod.bat "%1"

I haven't really experimented with bat files before, so this was sort of fun. now to rename that htaccess file that i wanted to an hour ago. hehe an hour to rename a file.
 
Last edited:
Top