.bat file does not start at the end of the process

Answered

Comments

2 comments

  • Avatar
    martinb
    Hello,

    you script seems OK, but please check this:

    • The execution folder is set to the application folder. You need to change the directory before creating files (add cd %~dp0),
      e.g.
      Code:
      @echo off
      cd %~dp0
      echo.>"RC_%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt"

      Please verify whether you files were created it the app folder.
    • Does the path to your script contain spaces? If yes, you need to enclose it into the double quotes, e.g.,

      Code:
      "d:\my scripts\script.bat" additional parameters

    thanks for posting.
    0
    Comment actions Permalink
  • Avatar
    Mikhail
    Thanks!

    Now everything is working. The file is saved to a Dropbox folder, the folder is synchronized with the online repository Dropbox. I configured the applet IFTTT to send me a notification to my phone when a new file appears in the Dropbox folder.

    Maybe there is a shorter way?
    0
    Comment actions Permalink

Please sign in to leave a comment.