Minecraft server1.9的.bat文件bat命令怎么写写

.bat文件闪退_百度知道在Windows server 2008下计划任务无法正常执行bat批处理文件的问题
windows server 2008 下计划任务执行批处理,总是提示执行成功,但是批处理该输出的内容却没有输出,解决办法:
如图:编辑任务 把批处理文件的起始位置加上如:在d:\aa.bat那么起始位置就是:d:\ &注:路径中不能有引号&
下面引用网上的东东:
批处理文件肯定是没有问题,加入到计划任务中,发现没能正常备份,也没有拷贝到网络映射盘。将bat文件输出到文件,本想看看log的,结果居然没有正常执行。&
google了一下,发现很多网友都有类似的问题,但没人给出答案。&
很幸运的找到一篇微软官方上的网友讨论的帖子,几乎全部解决我的问题。&
http://social./Forums/en-US/winservermanager/thread/d47d116e-10b9-44f0-9a30-fbe/&很精彩的技术交流。&
对我来说碰到了2个问题,&
1, a.bat 是处理备份,b.bat 内容为 a.bat & D:/abc/1.log , 将b.bat 加入的计划任务中,目的是想调试计划任务是否成功。(手动单独执行,每次都成功的)结果,是1.log不输出,计划任务中返回2; &
2,a.bat 中有把备份好的数据拷贝到网络映射盘,比如Z盘,计划任务每次都不执行,手动运行该脚本也是好的。&
按照上面论坛给的提示:&
2) Make sure that the task is set to "start in" the folder that contains the batch file: open the task properties, click on the "actions" tab, click on the action and then the "edit" button at the bottom. In the "Edit Action" Window there is a field for "start in (optional)" that you set to the path to the batch file.&
在&操作&-&"编辑操作"-&&起始于(可选)" 中一定要填入该批处理的路径。 这一招解决了第一个问题。&
NET USE W: /DELETE&
NET USE W: //myserver/myfolder /PERSISTENT:YES&
这个是解决第二个问题的关键,在执行拷贝,或者建立新文件夹之前,先要进行如上两行命令。 细节:确保在我的电脑界面通过菜单操作的网络映射盘式断开的;Windows server 2008 用户管理页面有个网络密码管理,如果填写了,net use w: ... 这行命令就不需要输入密码和用户名。&
这一招解决第二个问题。&
补充一点:批处理文件中和 &起始于(可选)&中的路径都不要使用 双引号""&
阅读(...) 评论()Steven's Blog
字号:大 中 小
&&& 前段时间在Windows Server 2008安装了一套基于MySQL数据库的软件,处于数据安全的考虑,希望每天能够自动进行数据库备份。我在别人脚本的基础上自己写了一个数据库备份的bat脚本,双击该脚本时可以正常将数据库备份成bak的文件,于是我就希望将这个bat放到Windows Server 2008的计划任务中,每天0:00:00自动执行该脚本。
&&& 但是在实验过程中,每次改脚本就第一天正常运行了一次,第二天就发现计划任务报错了。折腾了几个星期,每次都是只能运行一次。今天在网上看到一篇关于“在Windows server 2008 下计划任务无法正常执行bat批处理文件”的文章,终于按照其提出的方法成功的隔5分钟备份了两个文件。对比前后两次的设置(以前的计划任务设置使用的是计划任务中的“创建基本任务的向导”创建的(如图1-图7),这一次使用的是“创建任务”(如图8-图14)),主要的不同在于计划任务常规选项卡中的安全选项和以及新建操作中的起始于(可选)T选项。
创建基本任务
点击“创建任务”后如图所示:填写好相应的名称和勾选好必要的条件图8
选择“触发器”选项,点击“新建”,创建任务执行时间,“重复任务间隔”这个选择后,后面有时间选择,是每小时,还是每分,可自己选择后再修改时间,再确定。图9
再来配置需要执行的“操作”,就是选择所写的程序或是BAT文件,这里很重要的配置是选择BAT文件后,在“起始于(可选)”这里一定要填写相应执行程序或是BAT文件的所在目录,要不然是执行不成功的。图11
function open_phone(e) {
var context = document.title.replace(/%/g, '%');
var url = document.location.
open("/ishare.do?m=t&u=" + encodeURIComponent(url) + "&t=" + encodeURIComponent(context) + "&sid=70cd6ed4a0");
!觉得精彩就顶一下,顶的多了,文章将出现在更重要的位置上。
大 名:&&[]&&[注册成为和讯用户]
(不填写则显示为匿名者)
(您的网址,可以不填)
请根据下图中的字符输入验证码:
(您的评论将有可能审核后才能发表)
已成功添加“”到
请不要超过6个字183-minecraft-server-maker
[1.10.2] [Win/Linux/Mac] Minecraft Server Maker
37,686 Views, 86 today
6,517 Downloads, 16 today
Get Embed Code
This application does not port-forward and does not make changes in your firewallJava EditionIt works on any operating system supporting J Mac OS X, Linux & Windows.Open Source: Preview: Script EditionThis script download the Java Edition instead.Preview: Features- Make your own server in a matter of time. All downloadable files are located on high-bandwidth- and secure (HTTPS) servers. - Lightweight and optimized for minimal calls and more.Requirements- PowerShell v2.0 (Script Edition only).- An active internet connection.LicenseMCServerMaker - make your own Minecraft server in minutes.Copyright (C) 2016 Hawaii Impossible Force teamThis program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.You should have received a copy Of the GNU General Public License along with this program. If Not, see .FAQQ: It just crashed on me, what do I do?A: Please fill in
report and send it.Have any other questions? Let us know, and feedback is appreciated.v1.1.0 - v1.0.0 - v0.11.0 - v0.10.0 - v0.9.0.2b - v0.9.0.2 - YANKEDv0.9.0.1 - v0.9.0.0 - v1.4.0 - v1.3.0 - v1.2.0.0 - v1.1.0.5 - v1.1.0.4 - v1.1.0.3 - v1.1.0.2 - v1.1.0.1 - v1.1.0.0 - v1.0.0.2 - ?v1.0.0.1 - v1.0.0.0 -
Note: Showing last 25 of 55 logs.
## [1.2.0] - We're sorry to let Spigot support go. We had no clue that it broke the Mojang ToS and do not want to get into trouble, Spigot builds hosted by us will shortly be removed from all servers and code will not include anything related to Spigot.### Changed- Creating a server will now both '.sh' and '.bat' launch files.- Minor changes.### Removed- OS checker, no usage ( yes, it was the only usage).- Spigot support. Sorry, it had to go - it broke the Mojang ToS.
Updated Spigot to latest sourcesSpigot build versioning has been changed to date instead of &R1, R2, etc&
Spigot has been updated to the latest sources, was 10 versions behind.
Spigot has been updated to the latest sources.
Spigot and vanilla has been updated to MC1.10.2 sources
Spigot and vanilla has been updated to the latest MC1.10 sources.We know that this update is rolling out really slow, that's because we've been on VACation. We're now back in full effect.
Spigot has been updated to the latest version
Source added to GitHub, see link.
Spigot has been updated to MC1.9.4
Spigot has been updated to the latest version
## [1.1.0] - ### Changed- Renamed the command argument &server-ip& to &server-url& for obvious reasons.- You do no longer add a slash at the end of custom command arguments.- Minor changes in menu.### Fixed- Fixed configuration file where the IP was set invalid.
This update accually happened a few hours ago..Spigot has been updated to the latest version
Spigot has been updated to the latest versionMade (some) older versions usable.
Spigot has been updated to 1.9.2.
Vanilla has been updated to 1.9.2.
Spigot has been updated to the latest version.
New YouTube video up!
## [1.0.0] - First major release out!### Added- Rich command argument support added which was extremely fun to implement, use --? for updated command line arguments supported.- Started Javadoc.### Changed- Major cleanup.- Improved dialog with user.- Typo corrections.- Corrected package names yet again.
Spigot has been updated to the latest version.
## [0.11.0] - We were going to add memory capping in this version, but stumbled on some issues and we postponed the feature.### Added- Update checker now also links to the MCForum thread.- Permissions are now being checked before using selected folder.### Changed- Improved debugging and error handling by a lot. See README for updated errorlevels.- Renamed package to HiF, dumb Hawaii Beach taking all the credit :D (he kinda deserves it all).- Code cleanup.
Spigot has been updated to the latest version.
## [1.4.0] - The script edition is nearing its end, we are soon going to discontinue it and focus on finishing the Java Edition.### Added- Documented more, for obvious reasons.- Folder choser like the Java Edition.### Changed- Yet more code cleanup.- Updated README.### Removed- Java check, dumb idea for many reasons.### Fixed- Typos in the changelog.
Spigot has been updated to the latest version.
Spigot has been updated to the latest version.
Added- Old Java Edition versions.
Comments :
to post comments.
183-minecraft-server-maker
1,,329,,,654,50,826,071,971,513,982,,662399
25 diamonds
31,623 views
5,845 downloads
56 comments
6 favorited
Last updated
Game Version: Minecraft 1.6.4
Kintra said
Honestly, it doesn't really affect education whatsoever. What it has done, however, is bring awarene...
Quezillion Official said
This thread is pretty straightforward, I want to ask everyone, what is the category you use or visit...
Bluecolty said
This may sound crazy, but are all the mods in the mods folder match up with the version of forge you...
Storyshift Chara said
1.) This may seem difficult to do, but try reseting your computer. (Win10 has an option that allows ...
Yurah said
@XBlack_LeopardX
yeah im currently trying that now, with //cyl grass 100 then 150, 200, etc - ty
SilverKytten said
All of the plugins on Wyncraft were made specifically for the server, there's no way to get them unl...
Shadow_1313 said
Look it up on Google, there are a whole bunch of tutorials there....
ChickenMac7 said
I enjoy Soundtrack music, like Two Steps From Hell, Thomas Bergersen and occasionally Hans Zimmer.
Engregade said
the schematica mod works great for this....
C4pitano said
New versions of my personal skin: /skin/cyb ... onal-skin/
http&#58...
NakuMog said
Do stuff that hasn't been done, things original
or go with the trends.
whatever you are into
Such as...
EpicGamer10 said
Pepijn said
Rightclick detection is very meh in Minecraft atm. Normally you would use an invisible villager with...
SloPro11 said
No, you should not. Unless you are absolutely thrilled about the new features:
-Dual Camera on 7 Pl...
Your Local Fish Nerd said
Every year, a lot of people I know do this challenge called &Drawlloween& It is a challeng...
5,424People Online2,075,067Total Members1,782,046Minecraft Submissions1,537,428,831Total Submission Views298,245,495Downloads
253 diamonds
116,697 views
42,128 downloads
1406 comments
128 favorited
Last updated
Game Version: Minecraft 1.4
69 diamonds
94,535 views
23,146 downloads
86 comments
49 favorited
Last updated
Game Version: Minecraft 1.10
86 diamonds
85,796 views
26,945 downloads
669 comments
57 favorited
Last updated
Game Version: Minecraft 1.7.10
28 diamonds
83,264 views
21,383 downloads
42 comments
16 favorited
Last updated
Game Version: Minecraft 1.8.9
93 diamonds
77,662 views
11,098 downloads
134 comments
61 favorited
Last updated
Game Version: Minecraft 1.8.1
80 diamonds
64,216 views
21,696 downloads
126 comments
37 favorited
Last updated
Game Version: Minecraft 1.8.1
/css/style-v-version235.css,/css/editor-v-version235.css

我要回帖

更多关于 bat怎么写 的文章

 

随机推荐