中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-18 09:47
47,814 topics / 349,907 posts / today 0 new / 48,259 members
DOS开发编程 & 发展交流 (开发室) » Does anyone have source code for renaming directories?
Printable Version  2,246 / 4
Floor1 winhex Posted 2002-11-11 00:00
初级用户 Posts 1 Credits 105
C, Pascal, ASM... any of them is fine, thanks!!!
Floor2 LiveOnLove Posted 2002-11-27 00:00
中级用户 Posts 161 Credits 493 From ZHCN
/*Tested successfully in the Turbo C 2.0 environment. This program can not only rename folders (directories), but also rename files, though it may only work for DOS 8.3 filename format.*/
#include
#include
#include /*I also forgot which .h header files need to be included, just try it!*/
main(int argc,char *argv)
{
if(argc<=2)
{ printf("Parameter Error!\n";
printf("Usage:%s FileIN FileOUT",argv);
exit(1);
}
rename(argv,argv);
}









Floor3 imp Posted 2002-11-27 00:00
银牌会员 Posts 309 Credits 1,001
Floor4 Wengier Posted 2002-11-27 00:00
系统支持 Posts 10,521 Credits 27,736
The REN command in MS-DOS 7.x can rename directories (folders).
Floor5 LiveOnLove Posted 2002-11-29 00:00
中级用户 Posts 161 Credits 493 From ZHCN
To each his own.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023