Convert svg to png, pdf, ps, eps, emf

If you have Inkscape installed, you can simply convert any .svg file to Portable Network Graphic (PNG), PostScript (PS), Encapsulated PostScript (EPS), Portable Document Files (PDF), Enhanced Metafile Files (EMF-Windows only). To do this, create a button as «MS-DOS Batch function», sample text for converting to eps:

"C:\Program Files (x86)\Inkscape\inkscape.exe" --without-gui --file={filepath} --export-eps={filepath|noext}.eps"

Change "eps" to desired format. Now, if you select any .svg file and click new created button, you will get .eps file in the same folder.

Is there a way to do this with Illustrator or Corel Draw files?

I think no, as Inkscape can't save file to Illustrator or Corel Draw formats, as I know. But why do you need this? I am sure both Illustrator or Corel Draw can deal with .pdf format for example.

Of course they do, but I want to use your code to conver svg files but with any of those program, as I dont have inkscape instaled on my pc.