c# - Windows shortcut vs command line behavior -


i'm encountering strange problem explained differences in running program via command line or shortcut.

the application in question command line c# program generates barcodes quickbooks company file. have setup shortcut runs program. if run shortcut, unreproduceable, strange errors within program. errors not external libraries. if run shortcut via command line, or program directly program files correct command line parameters, runs fine.

any ideas? can provide more information on errors, have logic of program , not syntax/null pointer/object reference errors.

there's 1 thing distinguishs starting process command line or explorer starting shortcut: "working directory". command line or explorer set directory of executable. same in shortcut.

in program should not rely on working directory being path of executable (for config file, ressources a.s.o.). instead determine correct path @ runtime.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -