Jump to content

quick and easy fix


t0ddie
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...