在Windows注册表中使用字符串值中的空格字符 [英] Using space character in string value in windows registry

查看:788
本文介绍了在Windows注册表中使用字符串值中的空格字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用以下说明在Windows注册表中定义了新的扩展名(.abc):



I have defined new extension(.abc) in windows registry by using following instructions:

[HKEY_CURRENT_USER\Software\Classes\abcApp_V1\shell\open\command]
@="D:\myDirecoty\abcApp.exe \"%1\""
[HKEY_CURRENT_USER\Software\Classes\.abc]
@="abcApp_V1"





这是正常的,现在每个扩展名为.abc的文件都会打开abcApp.exe程序。



我已将目录名改为 my Directory (在我和目录):





This works properly and now each file with .abc extension opens the abcApp.exe program.

I have changed the Directory name to my Directory (add space between my & Directory):

@="D:\my Direcoty\abcApp.exe \"%1\""





它不起作用!和.abc扩展名的文件不要打开abcApp.exe



有什么问题?我应该用一个特殊字符替换空格吗?



It doesn't work! and the files with .abc extensions dont open abcApp.exe

What's the problem? Should I replace space with an special character?

推荐答案

我已经改变了它并且效果很好:



D:\ my Direcoty\abcApp.exe%1



谢谢
I have changed it like this and it works well:

"D:\my Direcoty\abcApp.exe" "%1"

Thanks


这篇关于在Windows注册表中使用字符串值中的空格字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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