Results 1 to 8 of 8

Thread: .BAT in "Execute after" pitfall

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Addendum:
    should have used
    Code:
    cmd /c build.bat
    instead of
    Code:
    .\build.bat
    right from the start.
    Lzarus invoking cmd.exe works perfectly, the script executes as designed finally allowing me to use loops and other advanced syntax.

  2. #2
    This reminds me that I was thinking about drop makefiles from my Pascal projects and use sh/bat/cmd scripts instead. Since I've learned how to do conditionals in bat/cmd files it seems more possible.
    No signature provided yet.

  3. #3
    PGDCE Developer de_jean_7777's Avatar
    Join Date
    Nov 2006
    Location
    Bosnia and Herzegovina (Herzegovina)
    Posts
    287
    Since both sh and cmd have their own quirks, I tend to avoid them. sh is more usable than cmd though. At work I use python instead of either. But personally, I have simple sh/cmd scripts to just build a simple pascal executable which does the rest. With instafpc or so should be a lot easier to make setup/build scripts than with sh/cmd. I've found, especially when one is doing redundant things, that duplicating functionality accross sh or cmd is bothersome.
    Existence is pain

  4. #4
    I always forget that Pascal can be used as a shell script as well. I have to see how does it work on Windows though.
    No signature provided yet.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •