By default UAC
in Vista
or Win7
does not give applications write permissions in Program Files, unless they are launched with elevated access.
you can do this by adding:
startInfo.Verb = "runas";
However, reading degrib
manual i've noticed it accepts input and output parameters.
So in your case it's recomended that you use a predefined location for your generated csv files.
http://www.nws.noaa.gov/mdl/degrib/txtview.php?file=degrib.txt&dir=base
-in [File]
You can provide the file to read the GRIB message from either:
1) right after "degrib",
2) using the "-in [File]" option,
3) on standard input.
-out [File]
Name of the file to store the results. Must have 1 and only 1 dot in
the name, and the extension must be 3 characters. The extension will
be replaced depending on file format.
-namePath [Path]
Name of a directory to put the files in.
Only applicable if -out is NOT Specified.