`

DOpus自动创建并打开日期文件夹

 
阅读更多
左键打开今天文件夹, 右键打开当月文件夹, 中键打开工作记录.xlsx, 复制以下代码, 在工具栏上右键-->自定义, 右击空白处粘贴即可, 根据自己情况适当编辑一下
<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none" type="three_button">
	<label>今天</label>
	<icon1>#sort_date</icon1>
	<button backcol="none" display="both" label_pos="right" textcol="none">
		<label>今天</label>
		<tip>E:\工作记录\xxxx年\xxxx年xx月\xxxx年xx月xx日</tip>
		<icon1>#sort_date</icon1>
		<function type="script">
			<instruction>@script:jscript</instruction>
			<instruction>function myGetDate() {</instruction>
			<instruction>	var zh = [&apos;一&apos;, &apos;二&apos;, &apos;三&apos;, &apos;四&apos;, &apos;五&apos;, &apos;六&apos;, &apos;七&apos;];</instruction>
			<instruction>	var date = new Date();</instruction>
			<instruction>	return {</instruction>
			<instruction>		year : date.getFullYear(),</instruction>
			<instruction>		month : date.getMonth() + 1,</instruction>
			<instruction>		date : date.getDate(),</instruction>
			<instruction>		week : date.getDay(),</instruction>
			<instruction>		hours : date.getHours(),</instruction>
			<instruction>		minutes : date.getMinutes(),</instruction>
			<instruction>		seconds : date.getSeconds(),</instruction>
			<instruction>		week_zh : zh[date.getDay()-1]</instruction>
			<instruction>	};</instruction>
			<instruction>}</instruction>
			<instruction>function OnClick(args) {</instruction>
			<instruction>	var date = myGetDate();</instruction>
			<instruction>	var path = [];</instruction>
			<instruction>	path.push(&apos;&quot;E:\\工作记录\\&apos;);</instruction>
			<instruction>	path.push(date.year + &apos;年\\&apos;);</instruction>
			<instruction>	path.push(date.year + &apos;年&apos;);</instruction>
			<instruction>	path.push((date.month &gt;= 10 ? date.month : &apos;0&apos; + date.month) + &apos;月\\&apos;);</instruction>
			<instruction>	path.push(date.year + &apos;年&apos;);</instruction>
			<instruction>	path.push((date.month &gt;= 10 ? date.month : &apos;0&apos; + date.month) + &apos;月&apos;);</instruction>
			<instruction>	path.push((date.date &gt;= 10 ? date.date : &apos;0&apos; + date.date) + &apos;日&apos;);</instruction>
			<instruction>	path.push(&apos; 星期&apos; + date.week_zh + &apos;&quot;&apos;);</instruction>
			<instruction>	args.func.command.AddLine(&apos;Go &apos; + path.join(&apos;&apos;) + &apos; newtab&apos;);</instruction>
			<instruction>	args.func.command.AddLine(&apos;CreateFolder name=&apos; + path.join(&apos;&apos;));</instruction>
			<instruction>	args.func.command.AddLine(&apos;Go &apos; + path.join(&apos;&apos;));</instruction>
			<instruction>	args.func.command.Run();</instruction>
			<instruction>}</instruction>
		</function>
	</button>
	<button backcol="none" display="both" label_pos="right" textcol="none">
		<label>今天</label>
		<tip>E:\工作记录\xxxx年\xxxx年xx月</tip>
		<icon1>#sort_date</icon1>
		<function type="script">
			<instruction>@script:jscript</instruction>
			<instruction>function myGetDate() {</instruction>
			<instruction>	var zh = [&apos;一&apos;, &apos;二&apos;, &apos;三&apos;, &apos;四&apos;, &apos;五&apos;, &apos;六&apos;, &apos;七&apos;];</instruction>
			<instruction>	var date = new Date();</instruction>
			<instruction>	return {</instruction>
			<instruction>		year : date.getFullYear(),</instruction>
			<instruction>		month : date.getMonth() + 1,</instruction>
			<instruction>		date : date.getDate(),</instruction>
			<instruction>		week : date.getDay(),</instruction>
			<instruction>		hours : date.getHours(),</instruction>
			<instruction>		minutes : date.getMinutes(),</instruction>
			<instruction>		seconds : date.getSeconds(),</instruction>
			<instruction>		week_zh : zh[date.getDay()-1]</instruction>
			<instruction>	};</instruction>
			<instruction>}</instruction>
			<instruction>function OnClick(args) {</instruction>
			<instruction>	var date = myGetDate();</instruction>
			<instruction>	var path = [];</instruction>
			<instruction>	path.push(&apos;&quot;E:\\工作记录\\&apos;);</instruction>
			<instruction>	path.push(date.year + &apos;年\\&apos;);</instruction>
			<instruction>	path.push(date.year + &apos;年&apos;);</instruction>
			<instruction>	path.push((date.month &gt; 10 ? date.month : &apos;0&apos; + date.month) + &apos;月&quot;&apos;);</instruction>
			<instruction>	args.func.command.AddLine(&apos;Go &apos; + path.join(&apos;&apos;) + &apos; newtab&apos;);</instruction>
			<instruction>	args.func.command.AddLine(&apos;CreateFolder name=&apos; + path.join(&apos;&apos;));</instruction>
			<instruction>	args.func.command.AddLine(&apos;Go &apos; + path.join(&apos;&apos;));</instruction>
			<instruction>	args.func.command.Run();</instruction>
			<instruction>}</instruction>
		</function>
	</button>
	<button backcol="none" display="both" label_pos="right" textcol="none">
		<label>今天</label>
		<tip>E:\工作记录\工作记录.xlsx</tip>
		<icon1>#sort_date</icon1>
		<function type="normal">
			<instruction>excel E:\工作记录\工作记录.xlsx</instruction>
		</function>
	</button>
</button>
分享到:
评论

相关推荐

    文件管理工具支持所有Windows下的常用应用文档格式

    5.双击左侧树形列表中的文章名,可以自动打开文章; 6.若你的显示器不能显示全部窗口,没有关系,窗口是浮动的,可以点击左上方的三个工具栏按钮,随时打开或关闭上方的三个窗口页; 注:不只PDF文件,本工具支持所有...

    Dopus5 – Directory Opus 5 (Amiga):适用于所有Amiga平台(AmigaOS3,AmigaOS4,MorphOS和AROS)的Dopus5-开源

    Dopus5(Directory Opus 5的缩写)是基于AmigaOS的计算机系统的著名Workbench克隆。 它具有文件管理器功能,并且多年来一直是流行的Amiga软件名称。 在从原始作者(GPSoft – http://www.gpsoft.com.au/)获得了源...

    directory opus

    directory opus v9.1.3 记得关掉自动更新

    Directory Opus Pro 12.12 BUILD6961 破解版

    最强windows资源管理器Directory Opus 12.12版。网上的很多破解都已失效,分享最新破解版。 1、使用Iobit/Revo Uninstaller将...4、打开Dopus程序,安装“Certificate”文件夹中的证书文件 5、禁用系统自动更新,完成。

    Windows 文件管理器专业工具 Directory Opus 12.12 中文免费版.zip

    Directory DOpus(简称 DOpus),是澳大利亚 GP Software 公司的产品,该公司成立于 1984 年,并于 1990 年发布了第一个正式版本的 Directory DOpus v1,它是 Greg Preey 博士为 Amiga 系统开发的,这一开发时间远远超前...

    Directory Opus 12.12 Build.6961 文档预览功能好用版

    安装好DOpus后注意切勿运行,直接以管理员权限执行Activator-DeLtA.exe即可打好补丁并自动安装好证书。 资源分我本人只设置为1分,唯一目的是挣点积分下载别人的资料。如果你看到分数超过了1分那绝对是被某站自己...

    Folder Menu 3.1汉化版

    超级好用的一键切换目录工具,文档位置任意到达。 纯正的中文版

    8年文件管理器

    8年文件管理器,php的,空间没解压功能的友友有福了,功能超级多

    Directory.Opus.v10.0.4.0.x64 破解汉化版

    3、打开后,设置不要自动检查更新(可以的话,在hosts文件中屏蔽掉软件的升级更新服务器),以免破解失效 4、做好以上工作后就可以正常使用了 5、如果发生注册失效的情况,请严格按照包中的说明进行再次破解 ps: 本...

    Directory Opus 12.6 破解版

    Directory Opus这是一个强大的文件管理软件,支持标签页,多窗口,色彩标记文件夹和文件,预览文件,图片标记收藏,文件收藏成集群,各种菜单按钮自定义,各种脚本命令自定义,关键点是界面美观也能跟得上您的系统。...

    可代替windows内置的完美任务管理器

    可代替windows内置的完美任务管理器:增加进程路径。进入安全模式,然后将程序复制至C:\WINDOWS\system32\drivers内替换原任务管理器,怕有问题可提前备份。

Global site tag (gtag.js) - Google Analytics