Notepad coding!

Programming, for all ages and all languages.
Joey

Re:Notepad coding!

Post by Joey »

ok, thanks andrew. also, i found that making the virus will be useful! i may have to use it on my pc some day. i remember i couldnt format my friends pc because of an incorrect dos version. if i would have known this, i could have used this program.

(we HAD to format the pc. there was tons of bad sectors and windows wasnt running. i fixed it for him though!)
jrfritz

Re:Notepad coding!

Post by jrfritz »

You can use scandisk.exe in the windows dir for DOS.

Scandiskw.exe is the windows version. YOU DIDn't have to reformat!
jelleghys

Re:Notepad coding!

Post by jelleghys »

To Joey (when to use this DOS-commands...):
When I've been on a site where I can download tabbed songs... (you know, lyrics with the chords...), I always have to rename them: file.txt => file.wri so that they open in wordpad instead of notepad (I just do this for some reason which are not of any importance in this thread). Anyway, it's easy to do that in DOS:

Code: Select all

ren *.txt *.wri
jrfritz

Re:Notepad coding!

Post by jrfritz »

How about if you create a program in C++ that loads a linked in registry addin that changes the current file type settings in the registry so the file opens in word pad even if it is a .txt? That will also cover files that are not in the current dir. That can be useful for a program where people like word pad.
ark

Re:Notepad coding!

Post by ark »

Just thought I'd mention that if you're going to write a progrem that calls someone a dumbass you might want to use the correct form of "you're". ::)
Berserk

Re:Notepad coding!

Post by Berserk »

Hey,

That thing isn't a Virus, nor is it a program! First of all, viruses are written in assembler, get out of it, viruses aren't good, only in some cases ;)

Now i will explain batch files (.bat):

Batch files are just a set of instructions for the DOS Console, they make using console compilers an programs much easier, automating the process. As for .exe files, well, there is no way you can edit them in notepad, if you open one it just shows some jibberish, you can not see the binary machine code in notepad, the reason for this is that notepad is made to read ASCII and Unicode Text Files, i believe it supports other formats aswell ;D

So Batch files are just an automated way to use the console ;), But in some cases they can be VERY dangerous, they can delete system files.

Batch file have much more advanced features than directly using the console, they can operate as console programs in some cases. If you want me to give you a brief explanation of them, just ask ;) I have quite a bit of experiece with batch files ;D

As for directly editing executables (.exe), this is crazy; But i would like to see machine code, and hackman doesnt seem to do it, anybody know of any good disasemblers so i can see machine code of executables??

Ciao, i hope i helped you out, I don't have the time to go into depth about batch files, so this isn't very detailed ;D
AGI1122

Re:Notepad coding!

Post by AGI1122 »

I edited your message, we don't support nor approve those kind of activities here. >:( :P
Berserk

Re:Notepad coding!

Post by Berserk »

Sorry, i got a bit carried away ::)
jrfritz

Re:Notepad coding!

Post by jrfritz »

Berserk...

Here is machine code:

0001 = 1 0010 = 2 0011 = 3 0100 = 4 0101 = 5 0111 = 6 1000 = 7 1001 = 8 1010 = 9 1011 = 10 1100 = 11 1101 = 12 1111 = 13

And I calculated that myself. Errors?
jelleghys

Re:Notepad coding!

Post by jelleghys »

I thought it was like this:
8421
| | | |
0000 = 0
0001 = 1
0010 = 2
0011 = 3
0100 = 4
0101 = 5
0110 = 6 -------------- all below are different
0111 = 7
1000 = 8
1001 = 9
1010 = 10
1011 = 11
1100 = 12
1101 = 13
1110 = 14
1111 = 15
0001 0000 = 16
:
:
:

no?


EDIT: btw: machine code? isn't this just numbers in binary?
jrfritz

Re:Notepad coding!

Post by jrfritz »

Opps...but it's not like that, though, it's like this:

0000 = 1 0001 = 2 0010 = 3 0011 = 4 0100 = 5 0101 = 6 0111 = 7 1000 = 8 1001 = 9 1010 = 10 1011 = 11 1100 = 12 1101 = 13 1111 = 14

Correct?
whyme_t

Re:Notepad coding!

Post by whyme_t »

jrfritz(Tom) wrote: Opps...but it's not like that, though, it's like this:

0000 = 1
0000 =1 ? Doesn't 0 = 0 and 1 = 1. Which is what Jelle said...
damonbrinkley

Re:Notepad coding!

Post by damonbrinkley »

jelle has it right.....
jrfritz

Re:Notepad coding!

Post by jrfritz »

Oh...well it's been a year since I looked at my book that had binary information.
Joey

Re:Notepad coding!

Post by Joey »

tom i did do scandisk from DOS. there wear so many bad sectors. where you have to hit fix it, we kept having to do that. there were way over 300 bad sectors, and we finally got tired of it.
Post Reply