예제 #1
0
        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)));
        }
예제 #2
0
        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)));
        }
예제 #3
0
        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)));
        }
예제 #4
0
        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)));
        }