如何在命令提示符下将日期设置为文件名(How to set file name as date in command prompt)
我想在命令提示符下运行以下
.py
脚本:connect('weblogic','welcome','t3://localhost:7001') exportMetadata(application='soa-infra', server='AdminServer',toLocation='C:\soa11g\New\abc_date.zip', docs='/**') exit()
但是,每当我执行它时,我都需要创建一个名称中包含sysdate的
.zip
文件,例如abc_10082015
或abc_10-08-2015
。 我怎样才能做到这一点?I want to run the following
.py
script at the command prompt:connect('weblogic','welcome','t3://localhost:7001') exportMetadata(application='soa-infra', server='AdminServer',toLocation='C:\soa11g\New\abc_date.zip', docs='/**') exit()
However, whenever I execute it, I need to create a
.zip
file with whose name contains the sysdate, e.g.abc_10082015
orabc_10-08-2015
. How can I do that?
原文:https://stackoverflow.com/questions/32494923
满意答案
我通过从WebPI安装Web Deploy来解决此问题。 由于某种原因,当我仅独立安装Web Deploy 3.6时,服务未正确注册。 通过WebPI安装后,发布作业立即开始工作。
I fixed this by installing Web Deploy from WebPI. For some reason when I only installed Web Deploy 3.6 independently the services were not registered properly. After installing via WebPI the publishing job instantly started working.
相关问答
更多Sitecore索引中的urllink通过“/ sitecore / shell /〜/ media / ...”返回媒体网址(urllink in Sitecore indexs returns media url with “/sitecore/shell/~/media/…”)
如何限制sitecore droptree字段仅接受媒体文件夹项目并且不允许媒体项目(How to restrict a sitecore droptree field to accept only media folder item and not allow media items)
如何停止在Sitecore媒体库文件夹中上传WFFM媒体文件并获取上传媒体文件的字节数组(How to stop uploading WFFM media files in Sitecore Media library folder and get byte array of uploaded media file)
sitecore媒体文件的Web部署问题(Web deploy issue with sitecore media files)
将大文件上传到sitecore媒体库(Upload large files to sitecore media library)
Sitecore字段,用于从媒体库中选择具有上载文件功能的多个文件(Sitecore field for selecting multiple files from media library with the ability to upload files)
Sitecore - 根据要求获取有关媒体项的信息(Sitecore - Get information about media item on request)
Sitecore配置问题(Sitecore Configuration issue)
Sitecore内部链接到媒体文件?(Sitecore internal links to media files?)
Sitecore媒体框架Ooyala 1.4 rev。(Sitecore Media Framework Ooyala 1.4 rev. 140411 is not pulling audio files from Ooyala backlot)
相关文章
更多shell 脚本执行,出现错误bad interpreter: No such file or directory
storm client command
How to set up Solr on Ubuntu 10.04 (or whatever)
《Windows 命令行详解手册(第2版)》(Windows Command-Line Administrator's Pocket Consultant, 2nd Edition)扫描版[PDF]
用‘button’跟‘text’组合代替‘file’,选择文件后点‘submit’,‘file’的值被清空
用SimpleDateFormat把字符串转换成Date的时候报NumberFormatException
Java 流(Stream)、文件(File)和IO
xxx is not in the sudoers file解决方法
PHP 中dirname(_file_)
【HDFS】HADOOP DISTRIBUTED FILE SYSTEM
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!