sdelete.exe不适用于cfexecute [英] sdelete.exe is not working with cfexecute

查看:101
本文介绍了sdelete.exe不适用于cfexecute的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行sdelete.exe( http://technet.microsoft .com/en-us/sysinternals/bb897443.aspx ),但我认为cfexecute甚至没有运行该命令.

I am trying to run sdelete.exe (http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx) using cfexecute, but I think cfexecute is not even running that command.

这没有给我任何权限错误.而且我已将所有管理员权限授予ColdFusion服务->登录选项卡.

It's not giving me any permission error. And I have given all admin privileges to ColdFusion service -> logon tab.

以下是我在.cfm页中成功运行但未删除文件的行:

The following is the line that I have in my .cfm page that run successfully but doesn't delete the file:

<Cfexecute name="C:\Inetpub\wwwroot\sdelete.exe" arguments="-p 2 C:\Inetpub\wwwroot\Deepak\testP\removeme.txt" outputfile="C:\Inetpub\wwwroot\Deepak\testP\out.txt"></Cfexecute>

我可以在命令提示符下执行它:

I am able to execute it in command prompt writing:

>C:\Inetpub\wwwroot\sdelete.exe -p 2 C:\Inetpub\wwwroot\Deepak\testP\removeme.txt

remove.txt不见了!

And remove.txt is gone!

我已经检查了所有窗口和ColdFusion日志,但没有发现有用的东西.

I have checked all the windows and ColdFusion logs, and didn't found anything useful.

推荐答案

当sdelete首次启动时,它会显示一个GUI提示,提示您接受许可协议.

When sdelete starts up for the first time, it gives a GUI prompt for you to accept the license agreement.

ColdFusion是一个服务器进程,通常会在其他用户帐户下运行.因此,您需要在该帐户上运行sdelete并接受协议.为此,您可以使用运行方式"命令.

ColdFusion is a server process, which would usually run under a different user account. So you need to run sdelete on that account and accept the agreement. To do so, you can use the Run As command.

这篇关于sdelete.exe不适用于cfexecute的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆