Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove passing procname by argv, instead use DOORSTOP_PROCESS_PATH en…
…vvar
- Loading branch information
1 parent
f9d7cb4
commit dcef761
Showing
3 changed files
with
32 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
using System; | ||
using System.IO; | ||
|
||
namespace Doorstop | ||
{ | ||
public static class Loader | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
using (TextWriter tw = File.CreateText("doorstop_is_alive.txt")) | ||
{ | ||
tw.WriteLine($"Hello! This text file was generated by Doorstop on {DateTime.Now:R}!"); | ||
tw.WriteLine($"I was called with {args.Length} params!"); | ||
|
||
for (int i = 0; i < args.Length; i++) | ||
tw.WriteLine($"{i} => {args[i]}"); | ||
|
||
tw.WriteLine($"Command line: {Environment.CommandLine}"); | ||
|
||
tw.WriteLine(); | ||
tw.WriteLine("Doorstop also set the following environment variables:"); | ||
tw.WriteLine($"DOORSTOP_INVOKE_PATH = {Environment.GetEnvironmentVariable("DOORSTOP_INVOKE_DLL_PATH")}"); | ||
tw.WriteLine($"DOORSTOP_MANAGED_FOLDER_DIR = {Environment.GetEnvironmentVariable("DOORSTOP_MANAGED_FOLDER_DIR")}"); | ||
|
||
tw.WriteLine("Replace this DLL with a custom-made one to do whatever you want!"); | ||
|
||
tw.Flush(); | ||
} | ||
} | ||
} | ||
using System; | ||
using System.IO; | ||
|
||
namespace Doorstop | ||
{ | ||
public static class Loader | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
using (TextWriter tw = File.CreateText("doorstop_is_alive.txt")) | ||
{ | ||
tw.WriteLine($"Hello! This text file was generated by Doorstop on {DateTime.Now:R}!"); | ||
tw.WriteLine($"Command line: {Environment.CommandLine}"); | ||
|
||
tw.WriteLine(); | ||
tw.WriteLine("Doorstop also set the following environment variables:"); | ||
tw.WriteLine($"DOORSTOP_INVOKE_PATH = {Environment.GetEnvironmentVariable("DOORSTOP_INVOKE_DLL_PATH")}"); | ||
tw.WriteLine($"DOORSTOP_MANAGED_FOLDER_DIR = {Environment.GetEnvironmentVariable("DOORSTOP_MANAGED_FOLDER_DIR")}"); | ||
tw.WriteLine($"DOORSTOP_PROCESS_PATH = {Environment.GetEnvironmentVariable("DOORSTOP_PROCESS_PATH")}"); | ||
|
||
tw.WriteLine("Replace this DLL with a custom-made one to do whatever you want!"); | ||
|
||
tw.Flush(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters