标签: shell32

导出无 def 文件的序数

我们可以使用def文件导出序数。但是系统dll不使用def文件。仍然shell32.dll有569个序数导出,user32.dll有181个序数导出。

有没有办法在没有def文件的情况下导出序数?

c c++ winapi shell32

2
推荐指数
1
解决办法
965
查看次数

在Windows服务中使用SHFileOperation

这是可能的,但在Windows服务中使用SHFileOperation是否合适?shell32.dll中的所有SHxxx API函数似乎都是用用户级程序编写的.我可以确定SHFileOperation不会显示GUI吗?

windows service winapi shell32

1
推荐指数
1
解决办法
2410
查看次数

c# Shell32 zip / unzip code, CopyHere 不工作

我在使用 Shell32 CopyHere 方法时遇到了一些问题。

首先,我从这个页面工作:http : //www.codeproject.com/Tips/257193/Easily-zip-unzip-files-using-Windows-Shell32

我希望用 C# 重写类似的东西,因为我几乎没有在 VB.NET 中工作过。

我正在传递一个输入目录,其中有一个文本文件作为我的测试。在底部,只是为了让我看到它实际上是在抓取我的文件,我写了 input.Items() 的计数,我得到了 1,所以我认为它看到的是我的目录,其中包含一个文本文件。但是,虽然我的代码创建了空的 zip 文件就好了,并且至少从控制台输出似乎正在抓取我的文件,但它实际上并没有将任何内容复制到 zip 文件中。不会抛出任何错误,就好像什么都没发生一样。

static void Zip(string i, string o)
{
        //Turn relative paths into full paths for Shell.NameSpace method.
        string ifp = Path.GetFullPath(i);
        string ofp = Path.GetFullPath(o);

        //Validate parameters.
        if (!(Directory.Exists(ifp)) || (Directory.GetFiles(ifp).Count() <= 0))
            throw new Exception("Input directory " + i + " was invalid.  " + i + " was either empty or doesn't exist.");
        string ext = ofp.Substring(ofp.Length - …
Run Code Online (Sandbox Code Playgroud)

c# zip shell32 shell32.dll

1
推荐指数
1
解决办法
6679
查看次数

遍历数组批处理脚本

在遵循有关在批处理脚本中遍历数组的教程时,我没有得到相同的结果:

在此处输入图片说明

@echo off 
setlocal enabledelayedexpansion 
set topic[0] = comments 
set topic[1] = variables 
set topic[2] = Arrays 
set topic[3] = Decision making 
set topic[4] = Time and date 
set topic[5] = Operators 

for /l %%n in (0,1,5) do ( 
   echo !topic[%%n]! 
)
Run Code Online (Sandbox Code Playgroud)

当我运行此命令时,我得到:

在此处输入图片说明

windows cmd shell32 batch-file

0
推荐指数
1
解决办法
2903
查看次数

标签 统计

shell32 ×4

winapi ×2

windows ×2

batch-file ×1

c ×1

c# ×1

c++ ×1

cmd ×1

service ×1

shell32.dll ×1

zip ×1