Jump to content

Sync in a Windows BAT script


Recommended Posts

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*

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
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...