0

Hello everyone,

Is been a while since i've been trying to rename a file
using the ren batch command, but for some reasons is not
working for me. could some one please give me an idea on
how to reanme a file with a batch file?
Thanks in advance.

This is my example:

@ECHO OFF
REN C:\Testing.txt Testing-Renamed.txt
2
Contributors
3
Replies
4
Views
4 Years
Discussion Span
Last Post by C0ding
0

>> but for some reasons is not working for me

Unable to guess the reasons. Is there ANY output produced when you run this script?

I'm not a batch file expert, but do you REALLY need to use batch file only? If not I highly recommend using something like Cygwin and do the same using a shell script instead.

I also understand that in newer Windows there is something called PowerShell, which is better programmable.

0

Hi, actually no, i don't get any msg, or anything poiting a reason or error.
All i need is to be able to change the name of any file from a batch file.
by the way, am i posting this thread in the wrong topic? i am new in this site.
another question, does daniweb deals with batch programming?

Edited by C0ding: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.