public void GenerateGuiBin(string exe, string name = null) { Debug("Calling 'ChocolateyRequest::GenerateGuiBin' '{0}','{1}'", exe, name); File.WriteAllText(GetBatFileLocation(exe, name), @"@echo off SET DIR=%~dp0% start """" ""%DIR%{0}"" %*".format(PackageExePath.RelativePathTo(exe))); }
public void GenerateConsoleBin(string exe, string name = null) { File.WriteAllText(GetBatFileLocation(exe, name), @"@echo off SET DIR=%~dp0% cmd /c ""%DIR%{0} %*"" exit /b %ERRORLEVEL%".format(PackageExePath.RelativePathTo(exe))); }
public void GenerateConsoleBin(string exe, string name = null) { Debug("Calling 'ChocolateyRequest::GenerateConsoleBin' '{0}','{1}'", exe, name); File.WriteAllText(GetBatFileLocation(exe, name), @"@echo off SET DIR=%~dp0% cmd /c ""%DIR%{0} %*"" exit /b %ERRORLEVEL%".format(PackageExePath.RelativePathTo(exe))); }
public void GenerateGuiBin(string exe, string name = null) { File.WriteAllText(GetBatFileLocation(exe, name), @"@echo off SET DIR=%~dp0% start """" ""%DIR%{0}"" %*".format(PackageExePath.RelativePathTo(exe))); }