Sign in to follow this  
Followers 0
t0ddie

quick and easy fix

3 posts in this topic

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



Why don't you just use FileMove() to rename it?

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 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

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0