I am sure when you read the title you thought this would be another "How do I encrypt my batch files?" thread. XP
I am not sure how to explain this, but I want to make a batch that pretty much does this;
Import text.
Change text.
Export text.
I do not fully understand the < and > commands quite yet, as I see no help for them in command prompt.
I know how to export something.
Echo Hi > C:\Test.txt
But I do not know how to use this to my advantage.
And I do not understand how to use the import currectly.
So...Lets say something along the lines of...
Make a text file that says Hi.
Import into my batch.
Change H to A
Change i to 9
Export
Now the txt says A9 instead of Hi.
Like, somehow have the bat replace A's with B's, and B's with A's. Or something like that.
If I could get how to make this, I could reverse it to decrypt the text as well.
But I am not exactly sure how to get this to work.
Of course, I wouldnt use this as my primary way to Encrypt things. I am just trying to learn is all.
I already have a huge batch made up that will do this:
Work on startup, constantly close every application (Even taskmanager and Explorer) and ask for a password. If the currect password is given, it will stop the process killing, open explorer, and let you continue.
Just for fun and laughs really.
Also side question, how do I edit a txt file with cmd? Assuming I know the line number, of course.
So lets say I wanted to change my password needed to continue my computer work;
The passwords are stored on line, 23, 28, and 45.
then go.
Xcopy Batch.bat Batch.txt
then edit batch.txt
Then use CALL to open up Batch2 (so Batch can be copied over).
Then do:
Xcopy Batch.txt batch.bat
Then CALL again to go back to batch, delete batch.txt, then the password is changed.
I will use Third-Party programs if necessary. (On either question)
Running WindowsXP Media. SP2.