Greetings,

How to change a file name using C# code with fixed path to the subject file?

Do I need to copy/create a new file with new name and delete the old one or is there a way to change the name without doing above.

Rds

I think there no method to do so, you can use DOS commands and call\send parameters to them from C# application.

Can you help me with that?

I think there no method to do so, you can use DOS commands and call\send parameters from them from C# application.

With pleasure ProcessStartInfo commandPromptProcess = new ProcessStartInfo("cmd.exe"); Find out how to make use of this.

Which system file does this ProcessStartInfo belongs to? I mean what do i need to add

using System.ProcessStartInfo? or something else

With pleasure ProcessStartInfo commandPromptProcess = new ProcessStartInfo("cmd.exe"); Find out how to make use of this.

Thanks, I was just looking for an efficient and quick way.

I guess File.Move(old,new) was too much to look for?

How can I get the file extension?

Please mark the thread as solved.

This question has already been answered. Start a new discussion instead.