AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I rename my process? (answered)

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Kerry



Joined: 20 Jul 2006
Posts: 146
Location: Los Angeles

PostPosted: Thu Jul 20, 2006 7:55 pm    Post subject: How do I rename my process? (answered) Reply with quote

For example, if my process was weird.exe, how would I change it to cool.exe? Is it possible? or would I have to create another .ahk (in my .exe) and then compile it?

Sincerely,
Kerry


Last edited by Kerry on Thu Jul 20, 2006 10:23 pm; edited 1 time in total
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
BoBo
Guest





PostPosted: Thu Jul 20, 2006 8:35 pm    Post subject: Reply with quote

Try this at your command line Start/Run
Code:
cmd /k ren weird.exe cool.exe


If you are a member of "The Society of Anonymous Mousepushers" ("Anonymer Mausschubser") - try that at the Windows Explorer:
a) select the file 'weird.exe'
b) choose File/Rename
c) change the name to cool.exe
d) have a beer because you're not weird enough to rename files and that's really cool exe !

God bless you - F2!
Back to top
Kerry



Joined: 20 Jul 2006
Posts: 146
Location: Los Angeles

PostPosted: Thu Jul 20, 2006 10:18 pm    Post subject: Reply with quote

hahaha, well that worked Smile

Thank you very much
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
MegaManII
Guest





PostPosted: Fri Jul 27, 2007 2:51 am    Post subject: Reply with quote

BoBo wrote:
Try this at your command line Start/Run
Code:
cmd /k ren weird.exe cool.exe



I've tried this with several processes. Windows tells me it can't find the files.
Code:

/k ren firefox.exe cool.exe

doesn't work.

Do you know what I'm doing wrong?
Back to top
TDMedia



Joined: 26 Nov 2005
Posts: 196

PostPosted: Fri Jul 27, 2007 3:03 am    Post subject: Reply with quote

First, /k is a cmd option, so you don't need it if you're already in a prompt.

You also need to be in the directory of the file you're trying to change the name of unless you specify an absolute path.

Code:
ren "C:\Folder\File.txt" "File2.txt"


You can ONLY specify an absolute path for the file-in name; ren cannot move a file after renaming it.
_________________
http://thedbdclan.com/public/pingrep
Back to top
View user's profile Send private message
MegaManII
Guest





PostPosted: Fri Jul 27, 2007 3:46 am    Post subject: Reply with quote

Cool. It works now. Kind of cool to be able to rename files through the command prompt
Back to top
Stefan



Joined: 30 Jul 2004
Posts: 72
Location: Deutschland (sorry for my english)

PostPosted: Fri Jul 27, 2007 7:16 am    Post subject: Reply with quote

Quote:
Kind of cool to be able to rename files through the command prompt


Shocked

Surprised

Very Happy

Laughing ...... Rolling Eyes Question i am that old the cli became cool again?
_________________
Stefan

This post was created with the kindly help of http://dict.leo.org/ and remember: “Allways look on the bright side of Life”
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 6084

PostPosted: Fri Jul 27, 2007 7:20 am    Post subject: Reply with quote

Stefan wrote:
i am that old the cli became cool again?


I felt the same way Very Happy
Back to top
View user's profile Send private message
Hardeep



Joined: 02 Jul 2006
Posts: 87

PostPosted: Fri Jul 27, 2007 10:29 am    Post subject: Reply with quote

Laughing Laughing Laughing
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2605
Location: Australia, Qld

PostPosted: Fri Jul 27, 2007 10:57 am    Post subject: Reply with quote

TDMedia wrote:
You can ONLY specify an absolute path for the file-in name; ren cannot move a file after renaming it.
Heh, I've never used 'ren'. I always use 'move', which can both move and rename a file.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group