A voir également:
- Commande dos renommer fichier
- Fichier bin - Guide
- Fichier epub - Guide
- Invite de commande - Guide
- Renommer fichier en masse - Guide
- Fichier rar - Guide
6 réponses
c'est bon j'ai trouver la reponse a ma question j'ai rajouter des " " entre le groupe de mot.
par exemple
rename c:\asterix et obelix.avi asterix et obelix 2.avi
cela ne fonctionne pas il faut rajoute des " " entre le tout comma ça
rename "c:\asterix et obelix.avi" "asterix et obelix 2.avi"
desoler de vous avoir deranger pour rien.
merci quand meme.
lvince81
par exemple
rename c:\asterix et obelix.avi asterix et obelix 2.avi
cela ne fonctionne pas il faut rajoute des " " entre le tout comma ça
rename "c:\asterix et obelix.avi" "asterix et obelix 2.avi"
desoler de vous avoir deranger pour rien.
merci quand meme.
lvince81
essayes de remplacer les " du nom par des \"
exemple:
system("RENAME fichier1.jpg "ca marche.jpg" ");
devient:
system("RENAME fichier1.jpg \"ca marche.jpg\" ");
exemple:
system("RENAME fichier1.jpg "ca marche.jpg" ");
devient:
system("RENAME fichier1.jpg \"ca marche.jpg\" ");
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.
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.
J'ai le meme pb que toi concernant les espaces lorsque je veux renommer un fichier. Si tu trouve une solution, repond moi!
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question