无法加载Reg文件 [英] Reg file could not load

查看:93
本文介绍了无法加载Reg文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个加载reg文件的项目...



I have created one project to load a reg file...

Dim p As Process = New Process
        Dim ps As ProcessStartInfo = New ProcessStartInfo
        ps.FileName = "regedit"
        ps.Arguments = "/S C:\temp\Addvalue.reg"
        p.StartInfo = ps
        p.Start()





这个有效,但是这个没有用





this is working but this one is not working

Dim p As Process = New Process
        Dim ps As ProcessStartInfo = New ProcessStartInfo
        ps.FileName = "regedit"
        ps.Arguments = "/S C:\Program Files\TTman\Addvalue.reg"
        p.StartInfo = ps
        p.Start()





请帮助



please help

推荐答案



也许您需要引用包含空格的路径名。



Hi,
Perhaps you need to quote the pathname containing the spaces.

i.e.
ps.Arguments = "/S \"C:\Program Files\TTman\Addvalue.reg\""






or

ps.Arguments = @"/S ""C:\Program Files\TTman\Addvalue.reg"""





Alan。



糟糕,抱歉错误的语言!



Alan.

Oops, sorry wrong language!


如果你使用win 7,如果八个运行程序为admin
If you are using win seven if eight run program as admin


这篇关于无法加载Reg文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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