Quantcast
Viewing all articles
Browse latest Browse all 41

VB 2010 Progress Bar.

I could not find out or understand the way of "Overriding" the OpenTextFile method.  Also, ANSI was not listed in the encoding list.

The difference between the batch file that Visual Basic made and one that I made was, first off, the VB one was UTF-8, and the one I made was ANSI.  Using the same code that was in each batch file, I made it with notepad but just changing the encoding.  For the first one, I used ANSI.  (Default)  I have "@Echo Off" at the top, which means that it should not display the command or the current working directories as you would see if you were literally in the Prompt.  But when I change the encoding to UTF-8, and even though I still had "@Echo Off" at the top.  It seemed as if it was on.  So it showed the command when it was ran, and it would show the directories.

I also took the batch file that VB made, opened it with notepad, Saved As, but changed the encoding to ANSI, and it worked the way it was suppose to, with the Echo Off.

The Batch files still run no problem, but just the @Echo Off does not work in the one VB uses because it is not ANSI.

If you don't know what I mean.

Open up Notepad and right this.

@Echo Off

Echo Hello

Pause >Nul

After that, go to Save As, make sure the encoding is set to ANSI, and save it as what ever you want with the .bat extension at the end.

Now do the same thing again but this time change the encoding to UTF-8.

Run them, and compare them.


Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>