t0ddie Posted September 25, 2004 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.
Valik Posted September 25, 2004 Posted September 25, 2004 Why don't you just use FileMove() to rename it?
t0ddie Posted September 25, 2004 Author 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now