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 41,507 of 42,547   
   David Jenkins to Herbert Kleebauer   
   Re: Question about batch labels   
   28 Oct 16 08:57:21   
   
   From: davidjenkins22681@gmail.com   
      
   We only use alphanumeric characters in our computer names.  No special   
   characters.  I know the list of valid hostnames and have a long convoluted   
   version that I did get working with about 60 "if" statements with the final   
   known valid name/if statement    
   having an "else" statement.   
      
   On Friday, October 28, 2016 at 10:41:28 AM UTC-4, Herbert Kleebauer wrote:   
   > On 28.10.2016 14:31, David Jenkins wrote:   
   >    
   > > echo off   
   > > cls   
   > > hostname>D:\Install\Script\Carts\name.dat   
   > > set /p current= > pause   
   > > goto %current%   
   >    
   >    
   > Remove the "echo off" line or insert an "echo %current%"   
   > before the goto line so the jump label is displayed.   
   > Maybe there are special characters in your computer   
   > names.   
      
   --- 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