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,874 of 42,547   
   Todd Vargo to Harry Potter   
   Re: Win32 batch file: long paths passed    
   27 Dec 13 13:54:20   
   
   From: tlvargo@sbcglobal.netz   
      
   On 12/27/2013 8:43 AM, Harry Potter wrote:   
   > On Thursday, December 26, 2013 8:42:37 PM UTC-5, Todd Vargo wrote:   
   >> It would seem several options have presented themselves before us.   
   >>   
   >> Either we can, (a) play a game of 20 questions to ascertain all relevant   
   >> details to the problem, (b) target sources of ambiguity and revert back   
   >> to (a), (c) type up some batch code based on a wild guess which may   
   >> drive the discussion down a deep rabbit hole with everyone chasing the   
   >> wrong goal, or (d) ignore thread until something tangible develops. I'll   
   >> take a chance on option (c) this time.   
   >>   
   >> Taking a guess, OS must be Win9x/Me. IIRC, Win9x does not pass a LFN   
   >> when a file is dropped on a batch file which is basically the same thing   
   >> as using the right click menu to pass a file to a batch or program.   
   >>   
   > I'm using Win98SE.  I tried executing UPX directly through the right-click   
   menu, but the window closed immediately after completion.  I wanted to see the   
   results first.  That's why I'm having this problem.  If I can't get a LFN from   
   a batch file, I'm    
   wondering if it's possible to pause after a single console app ends.  That's   
   basically what I need--for now.   
      
   Just add a PAUSE at the end of any batch to keep the window open.   
      
   >   
   >> It has been a while since I've used a Win98 machine. Try the following   
   >> test batch and let us know your results. Easiest way is to just drop a   
   >> file on it with an LFN then post the output.   
   >>   
   > I should be able to get the listed code snippet at the library today.   
      
   You have it listed before you. It's only 5 lines short. You could just   
   type it in manually, check it twice, and save a trip to the library. But   
   whatever.   
      
   >   
   >> @echo off   
   >> echo %%1=%1   
   >> lfnfor on   
   >> for %%? in (%1) do set LFN=%%?   
   >> echo %%LFN%%=%LFN%   
   >>   
      
   --   
   Todd Vargo   
   (Post questions to group only. Remove "z" to email personal messages)   
      
   --- 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