文件操作 - apm.cmd
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/atom/resources/app/apm/bin/apm.cmd
编辑文件内容
@echo off setlocal enabledelayedexpansion :: Try to find git.exe in path for /f "tokens=*" %%G in ('where git 2^>nul') do set "apm_git_path=%%~dpG" if not defined apm_git_path ( :: Try to find git.exe in GitHub Desktop, oldest first so we end with newest for /f "tokens=*" %%d in ('dir /b /s /a:d /od "%LOCALAPPDATA%\GitHub\PortableGit*" 2^>nul') do ( if exist "%%d\cmd\git.exe" set "apm_git_path=%%d\cmd" ) :: Found one, add it to the path if defined apm_git_path set "Path=!apm_git_path!;!PATH!" ) :: Force npm to use its builtin node-gyp set npm_config_node_gyp= if exist "%~dp0\node.exe" ( "%~dp0\node.exe" "%~dp0/../lib/cli.js" %* ) else ( node.exe "%~dp0/../lib/cli.js" %* )
修改文件时间
将文件时间修改为当前时间的前一年
删除文件