Results 1 to 3 of 3

Thread: calling .bat from withing .bat issues

  1. #1
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    856
    Thanks
    45
    Thanked 104 Times in 82 Posts

    Unhappy calling .bat from withing .bat issues

    Im' having issues calling a .bat file form withing a .bat file
    ive tried the following

    start /wait "" chksmll.bat %1 %1.out.png

    start /wait chksmll.bat %1 %1.out.png

    Call chksmll.bat %1 %1.out.png

    The sub batch gets executed fine but i get this strange by product of the .png file getting executed as well resulting in windows opening the .png file with the associated programs
    what am i doing wrong ?

  2. #2
    Member
    Join Date
    Aug 2014
    Location
    Argentina
    Posts
    464
    Thanks
    202
    Thanked 81 Times in 61 Posts
    what's inside the bats?

  3. #3
    Member
    Join Date
    Sep 2007
    Location
    Denmark
    Posts
    856
    Thanks
    45
    Thanked 104 Times in 82 Posts
    if %~z1 lss %~z2 del %2
    if exist %2 del %1
    if exist %2 ren %2 %1


    But this part get executed perfectly
    its during the call of the bat file the opening of the png file of %1 or %1.out.png (didn't check which one it was )

    I'm doing it this way since gettgin the filesize of %1.out.png does not works so im dumbing the filename into %2 of the second batfile and it does work.

Similar Threads

  1. LZ77 Performance Issues
    By david_werecat in forum Data Compression
    Replies: 4
    Last Post: 23rd August 2011, 18:06

Posting Permissions

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