home bbs files messages ]

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

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

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

   Message 9,877 of 10,840   
   George Bashore to frits.kieftenbelt@NOSPAM.wanadoo.nl   
   Re: KillDir not with long filenames?   
   29 Jan 06 23:03:28   
   
   From: gbashore@bcpl.net   
      
   Fritsch try this for a file   
      
   Dim FileName as String   
   FileName$ = "C:\PROGRA~1\MYDIRS~1\MYFILE~1.TXT   
   Kill FileName$   
      
      
   for a dir and all its files try this   
   add a reference to the Microsoft Scripting Runtime type library   
      
   Dim fso As New Scripting.FileSystemObject   
   fso.DeleteFolder "C:\PROGRA~1\MYDIRS~1"   ',True   ',True deletes read only   
   files also   
      
   George   
      
      
   "Fritsch Kieftenbelt uit Raalte (Bij Marienheem)"   
    wrote in message   
   news:43dd078a$0$2125$dbd45001@news.wanadoo.nl...   
   > Hello.   
   >   
   > When I use killdir to delete a file, only names from 8 characters or   
   > shorter   
   > wil delete.   
   > But names like MYFILE~1.TXT don't work with killdir.   
   >   
   > FileName$ = "C:\PROGRA~1\MYDIRS~1\MYFILE~1.TXT   
   > KillDir FileName$   
   >   
   > Above doesn't work.   
   >   
   >   
   > When I do it in DOS prompt with DEL C:\PROGRA~1\MYDIRS~1\MYFILE~1.TXT,   
   > then   
   > it works.   
   > I can't do it with other names because I get the shortnames (with tildes   
   > "~") from another Windows program.   
   > This program gives no long, full names.   
   >   
   > Is there another command to delete a file, given with the short names?   
   > For example to use the DOS command DEL.   
   >   
   >   
   >   
   >   
      
   --- 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