Search found 118 matches

by PaperTronics
26 Oct 2017 20:58
Forum: DOS Batch Forum
Topic: How to move cursor upwards without cls?
Replies: 21
Views: 25215

Re: How to move cursor upwards without cls?

@Aacini - First of all, I'm sorry for the 5 days delayed response. I was busy for a few days so I couldn't even open DosTips. I know that I made some modifications of the timeout line. But now I c/p your code and this is the output: 0 0 0 .0 10 Waiting for 1 seconds, press a key to continue ...The s...
by PaperTronics
21 Oct 2017 21:00
Forum: DOS Batch Forum
Topic: How to move cursor upwards without cls?
Replies: 21
Views: 25215

Re: How to move cursor upwards without cls?

@aGerman - I know Powershell isn't pure batch, but it is still better than having a big bunch of EXEs. So I guess you could call my program semi-pure batch @Aacini - After a LOT of experimenting, I've finally found out what the problem is (or at least I think so ). First look at the code: @echo off ...
by PaperTronics
14 Oct 2017 21:31
Forum: DOS Batch Forum
Topic: How to move cursor upwards without cls?
Replies: 21
Views: 25215

Re: How to move cursor upwards without cls?

@aGerman - That is the whole problem. I can't use 3rd party tools because I'm trying to make my program in pure batch. If I had to use 3rd party tools, I would've already used batbox or bg.exe!

Nonetheless, thanks for your code and hard work in digging out those links :D .




Cheers,
PaperTronics
by PaperTronics
13 Oct 2017 21:37
Forum: DOS Batch Forum
Topic: How to move cursor upwards without cls?
Replies: 21
Views: 25215

Re: How to move cursor upwards without cls?

@ShadowThief - I need to call the function like at least 50 times in my program, if that isn't too 'often' for you. @aGerman - Thanks! Your modified code works fluently, and without any errors. So I'm gonna stick with it. Although I have noticed that its slow if called repeatedly. So it can only be ...
by PaperTronics
13 Oct 2017 06:15
Forum: DOS Batch Forum
Topic: How to move cursor upwards without cls?
Replies: 21
Views: 25215

Re: How to move cursor upwards without cls?

@aGerman - It still doesn't solve my problem. Here's the whole first line of output: 0 | 0 Only the "|" character is outputted by me. Everything else is the console's magic . And here is the code I'm using: Call :MoveCursorUp for /l %%A IN (1,1,5) DO ( Call :XY 1 5 Call :colorPrint 0b &quo...
by PaperTronics
13 Oct 2017 04:05
Forum: DOS Batch Forum
Topic: How to move cursor upwards without cls?
Replies: 21
Views: 25215

Re: How to move cursor upwards without cls?

@Aacini - Windows 7 34 bit I've made the mod that you suggested and still it shows a 0 at the top. There's also a line appears at the current cursor position which looks something like this : Waiting for 0.1, It comes and disappears quickly so I can't c/p the line. I think it is of the timeout comma...
by PaperTronics
12 Oct 2017 06:45
Forum: DOS Batch Forum
Topic: How to move cursor upwards without cls?
Replies: 21
Views: 25215

Re: How to move cursor upwards without cls?

@Aacini - Thanks! The script works flawlessly, but, it displays a 0 at 0,0 which I certainly don't want. Other than that, I've noticed no bugs in the script and the great part is that it doesn't even slow down the program execution.



Thanks again,
PaperTronics
by PaperTronics
12 Oct 2017 06:41
Forum: DOS Batch Forum
Topic: Best way to obfuscate a Batch File?
Replies: 73
Views: 158964

Re: Best way to obfuscate a Batch File?

@dbenham - It's great that even the beginning character mapping lines of the code can be encrypted too. I was a bit worried about that if the user reads and understands the character mapping lines, they could decode the code in just a few hours/days (depending on the length of the code). But I didn'...
by PaperTronics
11 Oct 2017 06:11
Forum: DOS Batch Forum
Topic: How to move cursor upwards without cls?
Replies: 21
Views: 25215

Re: How to move cursor upwards without cls?

@Aacini - I tried both of the links, but I couldn't understand the usage. Hence I wasn't able to move my cursor to the desired location. I know it's too much to ask, but can you develop a piece of code for me that moves the cursor to 0,0 again?



Thanks for the help,
PaperTronics
by PaperTronics
10 Oct 2017 06:23
Forum: DOS Batch Forum
Topic: How to move cursor upwards without cls?
Replies: 21
Views: 25215

How to move cursor upwards without cls?

Hey guys!, So while I was experimenting with graphics for my new pure batch app, I came across a problem. I wanted to move the cursor back to 0,0 from any position on the cmd console, without clearing the screen. As I do with most of my problems, I searched the solution on the internet. I found jeb'...
by PaperTronics
04 Oct 2017 05:16
Forum: DOS Batch Forum
Topic: How to perfectly extract the content of a text file?
Replies: 11
Views: 11854

Re: How to perfectly extract the content of a text file?

@Compo - Thanks again, for the rewrite. The revised version of your code printed the line with poison characters just fine and I noticed a slight speed change too.



Thanks for your help,
PaperTronics
by PaperTronics
30 Sep 2017 23:45
Forum: DOS Batch Forum
Topic: How to perfectly extract the content of a text file?
Replies: 11
Views: 11854

Re: How to perfectly extract the content of a text file?

@Compo - I'm really sorry. I apologize for the lack of details, but there will be eventually every type of character in the file. Whether it be a poison character or any other, I hope till then I would've mastered the for loop and known how to get around this problem. Anyways, about the code: I trie...
by PaperTronics
30 Sep 2017 08:02
Forum: DOS Batch Forum
Topic: How to perfectly extract the content of a text file?
Replies: 11
Views: 11854

Re: How to perfectly extract the content of a text file?

@Phil - Thanks a bunch man! Your code works perfectly!

@Compo - I tried your code but it doesn't seem to support poison characters. I still appreciate the efforts you put into brainstorming the code.



Thanks again,
PaperTronics
by PaperTronics
29 Sep 2017 22:32
Forum: DOS Batch Forum
Topic: How to perfectly extract the content of a text file?
Replies: 11
Views: 11854

Re: How to perfectly extract the content of a text file?

@Phil & @Compo - I'm really grateful to you because the code that you guys provided is working. But I actually have 5 Files that I want to use this code on. 4 of them are similar to each other and the code works on them, but the 5th one is a bit different and the code doesn't work on it. Here is...
by PaperTronics
29 Sep 2017 07:05
Forum: DOS Batch Forum
Topic: How to perfectly extract the content of a text file?
Replies: 11
Views: 11854

How to perfectly extract the content of a text file?

Hey guys! So after my previous for loop problem, I thought everything was solved and good, but little did I know, that fortune had another problem in-store for me! Trying to extract data from my same text file "E_Summary.txt", I encountered another hair-tearing problem which was: Content o...