Is there a way to get the filename of the current query in LINQPad - just as argv[0]
in C? Getting only the directory name would also do.
You can get the directory path like this (from - LINQPad script directory?) -
Path.GetDirectoryName(Util.CurrentQueryPath)
The following (as pointed out by sgmoore in the comments) will get you the file path -
Path.GetFileName(Util.CurrentQueryPath)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With