t0ddie 0 Posted September 25, 2004 i want to rename 1.txt to 2.txt using the dos command ren its in the c:\ directory.. and when i open up the command prompt..its at c:\Documents and Settings\Toddie what do i need to change on this.. to get it to the c:\ directory in the prompt. otherwise, it cant find the file specified RunWait(@ComSpec & 'ren 1.txt 2.txt',@SW_HIDE) thanks! Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Share this post Link to post Share on other sites
Valik 478 Posted September 25, 2004 Why don't you just use FileMove() to rename it? Share this post Link to post Share on other sites
t0ddie 0 Posted September 25, 2004 (edited) i dunno, never thought of that. i just remembered the change directory command though. cd c:\ so, how would i do it the filemove way? would it be like filemove('c:\1.txt', 'c:\2.txt') ??? oh CRAP!! that worked.. nice thanks valik! Edited September 25, 2004 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Share this post Link to post Share on other sites