Source language: Translate to:

Registry Write

General questions about NeoBook

Moderator: Neosoft Support

Registry Write

Postby Dudus » Thu Dec 15, 2016 10:16 am

Hi all!

I want to import a registry key from my Pub directory, but when i use CMD Dos command with
regedit /s C:\MYPUBDIR\myfile.reg than it's work properly but when I replace the C:\MYPUBDIR to predefined [PubDir] variable it won't work.

Why? The path is the same, but somthing is wrong.
Can you check why?
Thanks Folks
D
User avatar
Dudus
 
Posts: 97
Joined: Wed Sep 07, 2005 12:15 pm
Location: Hungary, Budapest

Re: Registry Write

Postby Rasl » Thu Dec 15, 2016 4:27 pm

[PubDir] is C:\MYPUBDIR\

then
regedit /s [PubDir]myfile.reg
Rasl
 
Posts: 129
Joined: Sat Apr 02, 2005 8:25 am
Location: Buenos Aires, Argentina

Re: Registry Write

Postby Dudus » Fri Dec 16, 2016 2:13 am

Thank but this is not working even the path is tha same:
regedit /s [PubDir]myfile.reg

somehow it does not detect the path what is inside the variable [PubDir]

This is my issue :(
D
User avatar
Dudus
 
Posts: 97
Joined: Wed Sep 07, 2005 12:15 pm
Location: Hungary, Budapest

Re: Registry Write

Postby virger » Fri Dec 16, 2016 9:35 am

Este comando "regedit /s [PubDir]myfile.reg" NUNCA lo va ha entender CMD, porque la variable "[PubDir]" NO EXISTE, si desea correrlo en CMD haga un BatFile algo asi como esto:
Code: Select all
filewrite "[PubDir]WrReg.Bat" "All" "regedit /s [PubDir]myfile.reg"
Run "WrReg.Bat" "" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 510
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Re: Registry Write

Postby Dudus » Sat Dec 17, 2016 3:16 pm

virger wrote:Este comando "regedit /s [PubDir]myfile.reg" NUNCA lo va ha entender CMD, porque la variable "[PubDir]" NO EXISTE, si desea correrlo en CMD haga un BatFile algo asi como esto:
Code: Select all
filewrite "[PubDir]WrReg.Bat" "All" "regedit /s [PubDir]myfile.reg"
Run "WrReg.Bat" "" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""


Thank you! Excellent!
D
User avatar
Dudus
 
Posts: 97
Joined: Wed Sep 07, 2005 12:15 pm
Location: Hungary, Budapest


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 1 guest