registry - How do I run a batch file once in Office 2013 -


i trying have batch file run once when office started. opened following key , inserted in there not invoking right command.

hkcu\software\microsoft\office\15.0\firstrun 

i inserting item c:\program files\office2013templates\officetemplate3.bat run manually not run registry key.

so entire string looks this:
"msofficetemplate"="c:\\program files\\office2013templates\\officetemplate3.bat

i run silent, 1 thing @ time.

thanks might able give me.

if office using createprocess won't work because it's not program. cmd.exe runs batchfiles. try command.

c:\windows\system32\cmd.exe /c "c:\program files\office2013templates\officetemplate3.bat" 

office may require backslashes escaped. registry files require backslashes , quotes escaped. registry doesn't. enter above in registry editor , export formatted regfile.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -