AutoHotkey Community

It is currently May 25th, 2012, 1:14 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: July 20th, 2006, 7:55 pm 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
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 July 20th, 2006, 10:23 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 20th, 2006, 8:35 pm 
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!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 20th, 2006, 10:18 pm 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
hahaha, well that worked :)

Thank you very much


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2007, 2:51 am 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2007, 3:03 am 
Offline

Joined: November 26th, 2005, 10:35 pm
Posts: 196
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2007, 3:46 am 
Cool. It works now. Kind of cool to be able to rename files through the command prompt


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2007, 7:16 am 
Offline

Joined: July 30th, 2004, 11:30 pm
Posts: 74
Location: Deutschland (sorry for my english)
Quote:
Kind of cool to be able to rename files through the command prompt


:shock:

:o

:D

:lol: ...... :roll: :?: i am that old the cli became cool again?

_________________
Image Stefan

This post was created with the kindly help of http://dict.leo.org/ and remember: “Allways look on the bright side of Life”


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2007, 7:20 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Stefan wrote:
i am that old the cli became cool again?


I felt the same way :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2007, 10:29 am 
Offline

Joined: July 2nd, 2006, 7:59 pm
Posts: 87
:lol: :lol: :lol:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2007, 10:57 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Amandaville, Google Feedfetcher, KenC, krajan and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group