Old 1st December 2006, 14:02   #1
mamilo
Junior Member
 
Join Date: Nov 2006
Posts: 43
File renaming

Hi

i want to rename a file , do Somebody know how i can do it?
Thanks
mamilo is offline   Reply With Quote
Old 1st December 2006, 14:10   #2
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
What are you want to do?

Maybe
code:
File /oname="xxx"
help you.
glory_man is offline   Reply With Quote
Old 1st December 2006, 16:08   #3
solwolf
Junior Member
 
Join Date: Sep 2006
Posts: 19
Actually there is a Rename Function built into the program. (straight out of the manual)

Quote:
4.9.1.6 Rename
[/REBOOTOK] source_file dest_file
Rename source_file to dest_file. You can use it to move a file from anywhere on the system to anywhere else and you can move a directory to somewhere else on the same drive. The destination file must not exist or the move will fail (unless you are using /REBOOTOK). If /REBOOTOK is specified, and the file cannot be moved (if, for example, the destination exists), then the file is moved when the system reboots. If the file will be moved on a reboot, the reboot flag will be set. The error flag is set if the file cannot be renamed (and /REBOOTOK is not used) or if the source file does not exist.

If no absolute path is specified the current folder will be used. The current folder is the folder set using the last SetOutPath instruction. If you have not used SetOutPath the current folder is $EXEDIR.

Rename $INSTDIR\file.ext $INSTDIR\file.dat
-Solwolf
solwolf is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump