Computing Staff
  • 0

Add %1 To Data In REG ADD

  • 0

Im trying to add a new registry key and i was able to do it whereas when i tried the modify the data im not able to add %1 to the data .
For eg:- i need the following value to be present in the data “D:\\computing.bat %1” whereas only “D:\\computing.bat” is present in the data field.

My Snippet:-
REG ADD HKEY_CLASSES_ROOT\VSTA.disco.8.0\shell\Build\Command /d D:\\computing.bat %1

Share

1 Answer

  1. try using %%1 see if its an escape issue. Not sure what you are attempting to do with this, as it seems that you would have to define the parameter.

    • 0