How can i use another application outside my program?
-
hi, Please tell me how can i use another application(*.exe) outside my program. And one more problem i face is how can i rename file ? For example: i have a picker, after i choose a file and fill the new name, this file will be save with the new name. thanks in advance. :)
-
hi, Please tell me how can i use another application(*.exe) outside my program. And one more problem i face is how can i rename file ? For example: i have a picker, after i choose a file and fill the new name, this file will be save with the new name. thanks in advance. :)
abiisalwayshappy wrote:
Please tell me how can i use another application(*.exe) outside my program.
You mean run another program from your program? Look into System.Diagnostics.Process class.
abiisalwayshappy wrote:
how can i rename file ?
System.IO.File.Move can "move" a file from its current directory and into its current directory with a new name.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Islamic Domination: Coming to a Jewish state near you! The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
hi, Please tell me how can i use another application(*.exe) outside my program. And one more problem i face is how can i rename file ? For example: i have a picker, after i choose a file and fill the new name, this file will be save with the new name. thanks in advance. :)
you can start an external process by using Process.Start from System.Diagnostics namespace. to rename a file you can use File.Move in which you need to specify source and target. Saqib