Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 使用Rundll32复制SUBST函数_Windows_Winapi_Command_Subst - Fatal编程技术网

Windows 使用Rundll32复制SUBST函数

Windows 使用Rundll32复制SUBST函数,windows,winapi,command,subst,Windows,Winapi,Command,Subst,我一直在尝试使用rundll32复制函数subst.exe(用于映射驱动器的windows应用程序) 我知道使用了definedodevice,我知道要传递哪些参数,但我就是无法让它工作 假设我希望C:\Program文件映射为Z: rundll32.exe kernel32.dll, DefineDosDeviceA * * * 我试着以我认为正确的方式通过所有参数,但没有成功 如果有人能为我提供将程序文件映射到Z的工作语法:使用rundll32,我将非常高兴 提前感谢。Rundll32不是

我一直在尝试使用rundll32复制函数subst.exe(用于映射驱动器的windows应用程序)

我知道使用了
definedodevice
,我知道要传递哪些参数,但我就是无法让它工作

假设我希望C:\Program文件映射为Z:

rundll32.exe kernel32.dll, DefineDosDeviceA * * *
我试着以我认为正确的方式通过所有参数,但没有成功

如果有人能为我提供将程序文件映射到Z的工作语法:使用rundll32,我将非常高兴

提前感谢。

Rundll32不是通用的“运行导出函数”实用程序,它要求目标调用以特定方式原型化(例如,以字符串形式接收其命令参数)


由于
definedDevice
不符合此要求,因此无法按您的意愿调用它。

使用rundll32.exe毫无意义,您最好使用subst.exe