home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 40,772 of 42,547   
   Fairfax to All   
   Re: Can MS Paint be made to open maximiz   
   02 Oct 13 11:39:15   
   
   From: SpamNot@NoJunkMail.org   
      
   On Wed, 01 May 2013 03:31:13 -0500, Fairfax    
   wrote:   
      
   >The following bat file, when pointed to from the SendTo folder via a   
   >shortcut, opens up all selected images in MS Paint in WinXP all at   
   >once (a feature missing in MS Paint at least up until WinXP which is   
   >only app I have available and am allowed to use at work).   
   >   
   >Here is the bat:   
   >   
   >   
   **********************************   
   >@echo off   
   >:chk   
   >if "%~1" == "" goto :eof   
   >start /b mspaint %1   
   >shift   
   >goto chk   
   **********************************   
   >   
   >   
   >Does anyone know how to modify the above bat so that it opens up each   
   >image in windows maximized mode?   
   >   
   >Thank you!   
      
   Sorry for the delay in replying, but I've been going through my posted   
   messages on ngs and I saw this question I'd posted back in May.  I did   
   find a solution to this, so thought I'd close this thread with the   
   code:   
      
   **********************************   
   @echo off   
   :chk   
   if "%~1" == "" goto :eof   
   start /b /max mspaint %1   
   shift   
   goto chk   
   **********************************   
      
   The /max switch before mspaint does the job.   
      
   Thanks.   
      
      
   As I mentioned above, this bat is in the SendTo folder and when I have   
   a bunch of screenshots to consolidate into one file, I select them all   
   and then point them to the bat file in the SendTo folder, it opens   
   them up in maximixed MSPaint windows.   
      
   There is a limitation to how many windows will be opened and Windows   
   will open only that x number of files, but that's okay.  Better than   
   when I had to open them 1 by 1.   
      
   I also went on to create 2 more similar bat files in the SendTo   
   folder, one for my text editor (Metapad) and another for IE.  These 2   
   other bat files deal with the other 2 types of files I need to open   
   many files at once for and neither Metapad nor my IE version have   
   tabbed viewing or MDI interfaces that allow me to open more than one   
   file at a time.   
      
   The metapad example I'm posting below since it's a non-Windows app so   
   needs the filepath referenced to work:   
      
      
   **********************************   
   @echo off   
   :chk   
   if "%~1" == "" goto :eof   
   start /b /max "G:\TEXT\npad, Metapad v3.6\APP- Metapad   
   v3.6\metapad.exe" %1   
   shift   
   goto chk   
   **********************************   
      
   Anywho, someone else might find this useful in work situations where   
   the registry is locked down, etc., and you need to streamline   
   operations.  This type of bat allows for quick opening of multiple   
    files.   
      
   Cheers and thanks.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca