Windows 10: Issue with VB6 calling a .bat file for large files

Discus and support Issue with VB6 calling a .bat file for large files in Windows 10 Gaming to solve the problem; Hello everyone,I’m facing an issue when executing a .bat file from a VB6 program:My VB6 program calls a .bat file.The .bat file contains a Java command... Discussion in 'Windows 10 Gaming' started by Adam Loch, Nov 28, 2024.

  1. Adam Loch Win User

    Issue with VB6 calling a .bat file for large files


    Hello everyone,I’m facing an issue when executing a .bat file from a VB6 program:My VB6 program calls a .bat file.The .bat file contains a Java command that processes two files.This generally works, but when one of the files exceeds a certain size, the Java command is not executed.Interestingly, it works perfectly if I execute the .bat file by double-clicking it – regardless of the file size.My question: What can I do to ensure that the .bat file is reliably executed through the VB6 call, regardless of the file sizes?Thanks for your help!*Moved from CC

    :)
     
    Adam Loch, Nov 28, 2024
    #1
  2. NinjaNife Win User

    BAT File That Deletes Files Below Specific Size

    I am wondering how to make a bat file that can delete all files below a certain size (in this case 10kb). I have a folder on my server that has game screenshots in it (taken by Punkbuster) and need to sort out the good shots from the bad, and figure this is easier than manually deleting thousands of files.. The "bad" shots (blanks with failed renders) range in size from 4kb-8kb, so the bat file can delete anything lower than 10kb with no issues. Is this possible, and if so how do I make one? Thanks for your help.


    *EDIT*
    I have found a bat file that can delete specific types/sizes, but it only allows you to delete file sizes of 0kb (empty text documents and such), and replacing the "0" with "10" or any other number hasn't worked for me so far.
     
    NinjaNife, Nov 28, 2024
    #2
  3. BAT file/Script to find and replace files

    Hey all....

    Can someone help me make the BAT script in the 2nd post above to be able to use MORE than "1" file?
    As it currently is, you can only replace one particular file.

    For example, I want in the command line to be able to write two files or more, and the script will find and replace all those 2 or more named files.
    Thanks much.

    P.S.... Is there a GUI that does file searching and replacing?
    I've spent hours searching on the net, and the only thing I can find are "text" search/replace and this BAT command, not actual "file" replacing. I find this amazing. *Frown Issue with VB6 calling a .bat file for large files :(
     
    leeuniverse, Nov 28, 2024
    #3
  4. Lucasonas Win User

    Issue with VB6 calling a .bat file for large files

    BAT file/Script to find and replace files

    Greetings, streetfighter 2.

    I'll give your BAT a try. Thanks so much.

    Greetings, FordGT90Concept!

    Question:

    "So you have a directory containing both random named ZIP files and consistently named TXT files and you want to apply the TXT file naming patern to the ZIP files where the 5-digit numbers match?"

    Answer: Yes

    Question:

    Are there sub-directories?

    Answer: No

    Question:

    "Are all the ZIP file names in that pattern (#####_Example_720p.zip) and all the TXT files in that pattern (RAT_Example_#####_24f_ONO.txt)?"

    Answer: Yes

    Sorry about the terse replies, but your right: "Never assume."

    Greetings, Streetfighter 2

    I'll give your BAT a try. Thanks alot!
     
    Lucasonas, Nov 28, 2024
    #4
Thema:

Issue with VB6 calling a .bat file for large files

Loading...
  1. Issue with VB6 calling a .bat file for large files - Similar Threads - Issue VB6 calling

  2. Issue with VB6 calling a .bat file for large files

    in Windows 10 Software and Apps
    Issue with VB6 calling a .bat file for large files: Hello everyone,I’m facing an issue when executing a .bat file from a VB6 program:My VB6 program calls a .bat file.The .bat file contains a Java command that processes two files.This generally works, but when one of the files exceeds a certain size, the Java command is not...
  3. Bat file

    in Windows 10 Gaming
    Bat file: I have a bat fileI am improving it bit by bit till I have reached But not i have added a warning to it before a commandI now want to make that line font size Bigger than the others How can I do that ??So here is the Batch file content@ECHO OFF echo...
  4. Bat file

    in Windows 10 Software and Apps
    Bat file: I have a bat fileI am improving it bit by bit till I have reached But not i have added a warning to it before a commandI now want to make that line font size Bigger than the others How can I do that ??So here is the Batch file content@ECHO OFF echo...
  5. .bat files

    in Windows 10 Network and Sharing
    .bat files: So i am trying to make a minecraft server and need to open a .bat file but i keep getting a error saying "This app can not run on this pc" But it worked a month ago i need a solution please....
  6. Bat file

    in Windows 10 Ask Insider
    Bat file: Good morning/evening/night, I wanted to create a batch file or an exe that can change options inside the gui of an application (the application is cisco webex) (if you are familliar with webex i want to change the audio or turn it to music mode witha batch file) but i am...
  7. Read a file in a bat file

    in Windows 10 Support
    Read a file in a bat file: I have to read a file thru a bat file and get the date in the file. Once I get the date, I need it to be passed to be appended to another file. 160503
  8. .bat file

    in Windows 10 Customization
    .bat file: I have .bat file it is not working in my new PC when I double click on it. but it was working in my old PC. could your please support how to associate .bat file in windows 10? Kindly looking for your support and reply in this regards. Thanks.....
  9. .bat files changed?

    in Windows 10 Ask Insider
    .bat files changed?: Greetings. Regarding Windows 10. I have a .bat file that I've used for... well, since forever. It rarely changes and it hasn't changed in months. Despite running quite fine in its current incarnation for some months now it's quite recently it's began throwing the error:...
  10. VB6 Help file location

    in Windows 10 Software and Apps
    VB6 Help file location: I've installed an old version of VB6 on my Windows 10 64 bit system. The program works fine,but when I click on Help all I get is the message 'Unable to display Help'. Can someone tell me where the help files would have been installed, and the file names? 91008