简体   繁体   English

临时文件夹创建为临时文件

[英]temp folder is created as temp file

guys i have experienced a weird thing today. 伙计们,我今天经历了一件奇怪的事。 i am installing tomcat5 , and it stopped in the middle of progress bar. 我正在安装tomcat5,它停止在进度栏的中间。 and i use process explorer to check the processes. 我使用流程浏览器来检查流程。 i found a process with command line : 我用命令行找到了一个进程:

C:\\TEMP\\nse305.tmp\\ns306.tmp "C:\\Program Files\\Apache Software Foundation\\Tomcat 5.0\\bin\\tomcat5.exe" //IS//Tomcat5 ..... C:\\ TEMP \\ nse305.tmp \\ ns306.tmp“ C:\\ Program Files \\ Apache Software Foundation \\ Tomcat 5.0 \\ bin \\ tomcat5.exe” // IS // Tomcat5 .....

the weird thing is the first part: C:\\TEMP\\nse305.tmp\\ns306.tmp it supposed to be a path(folder) , i mean the nse305.tmp and ns306.tmp should be a temp folder name. 奇怪的是第一部分:C:\\ TEMP \\ nse305.tmp \\ ns306.tmp应该是路径(文件夹),我的意思是nse305.tmp和ns306.tmp应该是临时文件夹名称。 but when i check this path, i found nse305.tmp is folder, but ns306.tmp is a file!!! 但是当我检查此路径时,我发现nse305.tmp是文件夹,而ns306.tmp是文件!

that's why the process freeze, it is trying to run a tmp file: C:\\TEMP\\nse305.tmp\\ns306.tmp and since ns306.tmp is not an executable, the process never end. 这就是进程冻结的原因,它试图运行一个tmp文件:C:\\ TEMP \\ nse305.tmp \\ ns306.tmp,并且由于ns306.tmp不是可执行文件,因此该进程永远不会结束。

so i wonder : why the ns306.tmp is created as a file , not folder? 所以我想知道:为什么将ns306.tmp创建为文件而不是文件夹? i am sure it's my pc's problem. 我确定这是我电脑的问题。 the tomcat installation runs well in my workmate's pc. tomcat的安装在我同事的PC上运行良好。 is there any setting of OS , that will prefer to create file, instead of folder? 是否有OS的任何设置,它们将更喜欢创建文件而不是文件夹?

i have some experience like this: copy a.txt c:\\b 我有这样的经验:复制a.txt c:\\ b
what i want is that : the "copy" create a new folder "b", and place a.txt in it. 我想要的是:“复制”创建一个新文件夹“ b”,并将a.txt放入其中。 but actually it don't create any folder, just copy and rename the file with name "b" . 但实际上它不会创建任何文件夹,只需复制并重命名名为“ b”的文件即可。

i think these two situatiosn are a little similar. 我认为这两种情况有点相似。 but i don't know how to fix my Tomcat5 installation. 但我不知道如何修复我的Tomcat5安装。

i have read the Tomcat5.0.28.nsi file. 我已经阅读了Tomcat5.0.28.nsi文件。 the original code to run is : 要运行的原始代码是:

nsExec::ExecToLog '"$INSTDIR\\bin\\tomcat5.exe" //IS//Tomcat5 --DisplayName "Apache Tomcat" --Description "Apache Tomcat @VERSION@ Server - http://jakarta.apache.org/tomcat/ " --LogPath "$INSTDIR\\logs" --Install "$INSTDIR\\bin\\tomcat5.exe" --Jvm "$2"' nsExec :: ExecToLog“ “$ INSTDIR \\ BIN \\ tomcat5.exe” // // IS Tomcat5的--DisplayName “的Apache Tomcat” --description“的Apache Tomcat @ VERSION @服务器- http://jakarta.apache.org/tomcat / “ --LogPath” $ INSTDIR \\ logs“-安装” $ INSTDIR \\ bin \\ tomcat5.exe“ --Jvm” $ 2“”

any suggestion? 有什么建议吗?

我不确定我是否可以完全理解您的要求,但是如果将\\放在路径的末尾,它将确保它是文件夹而不是文件-即C:\\TEMP\\nse305.tmp\\ns306.tmp\\

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM