All Things WinBatch > WinBatch

Insufficient space error when there appears to be more than sufficient space

(1/4) > >>

pguild:
I am able to compile a Winbatch script, but when I run it I get confusing error messages described below.
(I have simple .jpg screenshots of these error messages, but for some reason, they do not pass the security check of this forum.)

The first error message is:
---------------------------------
Determined.txt
Required DLL File could not be created.
Insufficient disk space exists on drive to
write the DLL file above.  Approx 400K needed. 
---------------------------------
(NOTE: no DLL file is listed above, just a text file. Also, 14.5 GB of free disk space is available)
-----------------
Next, this error message appears:
---------------------------------
WIL Extender Error: 10143 ExtractAttachedFile Error
finding or extracting specified file
---------------------------------
The code asking for extraction is as follows:
   ;Extract other files if they don't already exist
   rc = 0
   files[0] = "prompts.txt"
   files[1] = "BigArticle.txt"
   files[2] = "Determined.txt"
   files[3] = "Editor.txt"
   files[4] = "Encouraging.txt"
   files[5] = "Fitness-enhancing.txt"
   files[6] = "Inspirational.txt"
   files[7] = "MakePrompt.txt"
   files[8] = "Oneliners.txt"
   files[9] = "people.txt"

   foreach file in files
      if ! FileExist(file)
         rc = ExtractAttachedFile(file, file)
      endif
   next

I've tried running the application on multiple drives all of which have more than adequate disk space, and I get the same error messages.
NOTE: previously, I was able to compile and run the application without these errors, and I think I made no changes to the script.
The Winbatch error about not being able to extract the required DLL without listing the DLL above is confusing.
Also, the required DLL was actually extracted as you can see from one of the screenshots.

How can I fix this? Thanks for your help.

td:
Without knowing details it is difficult to suggest a cause because there could be many. The only suggestion is to recompile the script after ensuring your compiler settings are all as intended and have not changed from the last time the compiled script worked. You might want to make doubly sure that the `Skip auto-extraction of "Extender" and "Other Files"` option is checked.

Also, it should be self-evident that the reference to "DLL" in the error message is not significant because the error message mentions the file causing the problem and none of the files you are extracting has a "DLL" extension. Of potential significance is that the file mentioned in the error message is the first to be extracted by the ExtractAttachedFile function.

pguild:
What compiler settings should I use?  To my knowledge, I have not changed the compiler settings.  Does it make sense that Winbatch is complaining not being able to extract a DLL file when actually the DLL file *was* extracted?

Something is really off when Winbatch thinks there is not enough space when there is plenty! Could this possibly be a bug that needs fixing -- in Windows 11 or, ahem, elsewhere?

I am about ready to throw in the towel on this extraction business since it does not work and I don't know how to fix it.  Earlier I just gave the users a zip file and asked them to unzip all the files needed and it worked, although it is cumbersome.

**Also** please let me know why simple .jpg file in my attached files are flagged by this Forum.

JTaylor:
Do you happen to be extracting and running any scripts in that directory?  If so, make sure they are compiled as a Small Exe as they are trying to write over the main winbatch DLL of the extracting script when they launch.

Jim

td:

--- Quote from: pguild on September 18, 2023, 04:18:09 pm ---What compiler settings should I use?  To my knowledge, I have not changed the compiler settings.  Does it make sense that Winbatch is complaining not being able to extract a DLL file when actually the DLL file *was* extracted?

Something is really off when Winbatch thinks there is not enough space when there is plenty! Could this possibly be a bug that needs fixing -- in Windows 11 or, ahem, elsewhere?

I am about ready to throw in the towel on this extraction business since it does not work and I don't know how to fix it.  Earlier I just gave the users a zip file and asked them to unzip all the files needed and it worked, although it is cumbersome.

**Also** please let me know why simple .jpg file in my attached files are flagged by this Forum.

--- End quote ---

As mentioned in my original post on this topic make sure the `Skip auto-extraction of "Extender" and "Other Files"`  setting is selected in your compiler settings. And it is not at all likely that your error message is a "bug" in WinBatch. WinBatch simply uses a single Windows API call to determine available disk space.  Only 14.5 GB of disk space is suspect, however.

There are many approaches to problem-solving. Some are more sophisticated than others.

Note that this forum has both total size and content restrictions on images and other attachments. 

Navigation

[0] Message Index

[#] Next page

Go to full version