Salutatous,
Pourquoi faire du C pour utiliser system ?
Il doit exister une fonction rename dans Win$ non?
Consultez la merveilleuse information des API win$...
Recherchez sur Google , mais de grâce, n'utilisez system
qu'en dernier recourt i.e API non disponible,
programme propriétaire incontournable.... et alors ily a popen
(je ne sais pas si cela existe sous Win$)
Sous UNIX
man 2 rename
(abrégé)
RENAME(2) Linux Programmer's Manual RENAME(2)
NAME
rename - change the name or location of a file
SYNOPSIS
#include <stdio.h>
int rename(const char *oldpath, const char *newpath);
DESCRIPTION
rename renames a file, moving it between directories if required.
Any other hard links to the file (as created using link(2)) are unaffected.
If newpath already exists it will be atomically replaced (subject to a few conditions - see ERRORS below), so that there is no point at which another process attempting to access newpath will find it missing.
If newpath exists but the operation fails for some reason rename guarantees to leave an instance of newpath in place.
However, when overwriting there will probably be a window in which both oldpath and newpath refer to the file being renamed.
If oldpath refers to a symbolic link the link is renamed; if newpath refers to a symbolic link the link will be overwritten.
Voir sur le net
http://mkssoftware.com/docs/man3/rename.3.asp
Johan Daine
The software said "Requires Windows98, Win2000, or better,
So I installed Unix.