Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. BrendanDeTracey

    RmDir fails after Win98 to XP upgrade.

    Addendum: Public Sub Clean_directory(Directory As String) Dim fso As FileSystemObject, fileList As Folder, _singleFile As File Set fso = CreateObject("Scripting.FileSystemObject") Set fileList = fso.GetFolder(Directory) For Each singleFile In fileList.Files...
  2. BrendanDeTracey

    How can I end an external program?

    <br>See Thread222-753865
  3. BrendanDeTracey

    RmDir fails after Win98 to XP upgrade.

    I have added Reference to MSR. Thanks for suggestion. How about this shorter alternative for Sub Clean_directory? Are variables fileList and File both type FileSystemObject? Public Sub Clean_directory(Directory As String) Dim fso As FileSystemObject, fileList As FileSystemObject, File As...
  4. BrendanDeTracey

    RmDir fails after Win98 to XP upgrade.

    johnwm, I am stuck with VB5 in which: Dim fso As FileSystemObject causes the error: Compile Error: User-defined type not defined.
  5. BrendanDeTracey

    RmDir fails after Win98 to XP upgrade.

    Thanks Glasgow and Swi, I used the first code block, since it will delete a folder and its contents, but did not use the 'True' option. Dim fso As FileSystemObject should be: Dim fso I will never use Kill or RmDir ever again.
  6. BrendanDeTracey

    RmDir fails after Win98 to XP upgrade.

    Timing is not the problem. I break on the RmDir line and then press F8 to execute it, after a slight pause. Executing the RmDir command from the intermediate window invokes the same error. All Directories are read-only, and changing that attribute does not solve the problem. I may try...
  7. BrendanDeTracey

    RmDir fails after Win98 to XP upgrade.

    Strange, When I comment out the call to Clean_directory, and ensure the directory is empty, the RmDir works. Somehow the Sub Clean_directory is the source of my ills. Call Clean_directory(CMC_Path & path(j) & "\") RmDir CMC_Path & path(j) ''''''''''''''''''''''''''''''''''''''''''''''''''...
  8. BrendanDeTracey

    RmDir fails after Win98 to XP upgrade.

    The Directory I am trying to remove is: CMC_Path & path(j) where strings: CMC_Path = "c:\iofs_pom\cmc\" path(j) = "2004010112" Neither string contains any spaces. The directory is empty.
  9. BrendanDeTracey

    RmDir fails after Win98 to XP upgrade.

    Yes, I have tried the test you described and it worked. I am getting file/path access error 75.
  10. BrendanDeTracey

    RmDir fails after Win98 to XP upgrade.

    Hi, The office has finally upgraded from Win98 to XP. Now my VB code which worked perfectly under Win98 fails when executing the RmDir command. The Kill command works fine. Is this a security problem? I have admin privileges and own the directory to be removed. Thanks, Brendan

Part and Inventory Search

Back
Top