pikov 1 Posted September 2, 2016 Share Posted September 2, 2016 I have this Windows BAT script that will create <date-related-filename>.enex in a directory of my choice. I would like to sync the databases first but if I include this: <fullpathname_to_enscript,exe> syncDatabase the BAT file stops and asks for a password! How do I work around this? Thanks. Link to comment
Level 5* jefito 5,586 Posted September 2, 2016 Level 5* Share Posted September 2, 2016 Running the ENScript.exe program to get help for the syncDatabase command, I see: >enscript syncDatabase /? Usage: ENScript syncDatabase [options] Options: /l file name - log file name. Use standard log if omitted. Ignored in GUI implementation. /u username - user name if not the same as database file name. /p password - user password to confirm Evernote service access. /d database - database file name if user name is not specified. If both database file name and user name are not specified, last login name is used and if there is none, USERNAME environment variable value is used as a user name. Looks like you need to supply a password using the /p option in your .bat file. Link to comment
pikov 1 Posted September 2, 2016 Author Share Posted September 2, 2016 1 hour ago, jefito said: Running the ENScript.exe program to get help for the syncDatabase command, I see: >enscript syncDatabase /? Usage: ENScript syncDatabase [options] Options: /l file name - log file name. Use standard log if omitted. Ignored in GUI implementation. /u username - user name if not the same as database file name. /p password - user password to confirm Evernote service access. /d database - database file name if user name is not specified. If both database file name and user name are not specified, last login name is used and if there is none, USERNAME environment variable value is used as a user name. Looks like you need to supply a password using the /p option in your .bat file. I'm blushing. Thanks. Link to comment
Level 5* jefito 5,586 Posted September 5, 2016 Level 5* Share Posted September 5, 2016 No problem. It'snot like I've never missed something that was obvious in hindsight. Rock on! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.