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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -