Search found 31 matches

by rasil
08 Jul 2021 15:22
Forum: DOS Batch Forum
Topic: Random ECHO is Off. in numbers
Replies: 3
Views: 240

Random ECHO is Off. in numbers

Hello, Here i have a simple program that makes 3 lots of really random numbers. @echo off rem ------------------------------------------------ rem component of project not to be used seperately. rem ------------------------------------------------ rem 36x10 hex components rem [Default 30000, 1] [Max...
by rasil
03 Jul 2021 17:36
Forum: DOS Batch Forum
Topic: Create a Image from a batch file.
Replies: 6
Views: 300

Re: Create a Image from a batch file.

Excellent! :D

Great work Steffen! your edit improved performance a lot. Thanks for taking the time to help me!
by rasil
03 Jul 2021 09:50
Forum: DOS Batch Forum
Topic: Copy and rename on one command line
Replies: 4
Views: 232

Re: Copy and rename on one command line

You can combine 2 commands together with a &

for example

Code: Select all

echo hello&pause>nul
by rasil
03 Jul 2021 09:21
Forum: DOS Batch Forum
Topic: Create a Image from a batch file.
Replies: 6
Views: 300

Re: Create a Image from a batch file.

This takes ages because the 4-bit RGBI information has to be converted into 24-bit RGB information first. Someone else may try to improve it ... Steffen Woah! :shock: This is exactly what I am looking for but as you have stated it is slow and to make it faster can the RGB colour code directly be ad...
by rasil
02 Jul 2021 17:23
Forum: DOS Batch Forum
Topic: IF EXIST, CONTINUE
Replies: 2
Views: 242

Re: IF EXIST, CONTINUE

You can do...

Code: Select all

if not exist c:\users\test\sample.txt [command if the file doesn't exist]
This would only do the command if the file doesn't exist. otherwise it will be ignored and your batch file be executed normally
by rasil
02 Jul 2021 17:05
Forum: DOS Batch Forum
Topic: Create a Image from a batch file.
Replies: 6
Views: 300

Create a Image from a batch file.

Hello! Is there a way to create a image with a batch file only? i was thinking like a 64x64 with big pixels being drawn line by line. Is it possible to input a array of numbers and the batch file being able to output a bmp or a jpeg? such as colour codes for batch file like this: F = white C = red I...
by rasil
15 May 2021 13:38
Forum: DOS Batch Forum
Topic: load a txt file and break up a string
Replies: 1
Views: 570

load a txt file and break up a string

Hi, I have a txt file containing a lot of information about clients and their room numbers formatted like this [NAME:ROOM-NUMBER] so the name and the room number is broken up by a colon. is there a way to display this in 2 different variables? so for example: Data.txt jonson:138 Massison:124 Elias:1...
by rasil
21 Apr 2021 09:58
Forum: DOS Batch Forum
Topic: Start batch files at startup...
Replies: 2
Views: 890

Start batch files at startup...

Hey,

I want to create a batch file that when you run it, it puts itself in the startup folder or something like that. I searched on google and all the solutions require you to manually put them in the startup folder or make a regedit file. Is something like that going to be possible?
by rasil
09 Apr 2021 15:44
Forum: DOS Batch Forum
Topic: Is there a way to obfuscate parts of a batch file?
Replies: 3
Views: 1291

Re: Is there a way to obfuscate parts of a batch file?

ShadowThief wrote:
09 Apr 2021 13:59
Dbenham used ROT13 to obfuscate a significant chunk of his port of Colossal Cave Adventure: viewtopic.php?f=3&t=4876
Hi,

ROT13.. hmmm I don't know how to use that to obfuscate a batch file.. I am pretty new to this so I feel like an idiot :oops:
by rasil
09 Apr 2021 12:52
Forum: DOS Batch Forum
Topic: Is there a way to obfuscate parts of a batch file?
Replies: 3
Views: 1291

Is there a way to obfuscate parts of a batch file?

Hello, I have a batch file that I need to obfuscate. Instead of just obfuscating all of it I just want to obfuscate parts of it. is that possible? The example file is called test.bat test.bat @echo off echo this part isint hidden. pause goto axtb :axtb cls echo this part is hidden. pause exit And th...
by rasil
04 Mar 2021 15:00
Forum: DOS Batch Forum
Topic: change a file's name inside a directory problem
Replies: 3
Views: 1783

change a file's name inside a directory problem

hi,

I want to change this file called databaseTMP.scu to database.scu but for some reason this isn't working it just says The syntax of the command is incorrect. this is what I've tried

Code: Select all

ren "C:\Users\Public\Documents\databaseTMP.scu" "C:\Users\Public\Documents\database.scu"
Rasil
by rasil
01 Mar 2021 09:03
Forum: DOS Batch Forum
Topic: Blank FTP response!
Replies: 3
Views: 1711

Re: Blank FTP response!

Just a small update:
is it a problem with my isp?
So it turns out that by using a vpn i can successfully connect to the ftp server using ftp.exe. so it has to be my isp (british telecom). But this doesn't explain everything why does Winscp and filezilla work without an vpn?

Rasil
by rasil
28 Feb 2021 14:31
Forum: DOS Batch Forum
Topic: Blank FTP response!
Replies: 3
Views: 1711

Re: Blank FTP response!

Why test with an online ftp manager? Why not test with manually typing the commands at a console window or even just using a free ftp client like Filezilla. Note that the Windows FTP client does not support passive mode. hi, I checked with ftp client and it successfully connected but right after i ...
by rasil
28 Feb 2021 10:02
Forum: DOS Batch Forum
Topic: Blank FTP response!
Replies: 3
Views: 1711

Blank FTP response!

Hi, I have a batch file that connects to a ftp server then makes a folder and deletes a ( %username%.txt ) But when I execute the file it just stays blank with no response but if I let it run it says connection timed out note that the ftp server is working fine and in can connect to it using an onli...
by rasil
12 Jan 2021 16:19
Forum: DOS Batch Forum
Topic: Need help running imagemagick command over many files
Replies: 9
Views: 2067

Re: Need help running imagemagick command over many files

- I will run the code on jpg and png files. When running on PNG, I need to give jpg as the output file name, like: convert input.png -resize 300 output.jpg Else, I will get PNG output. How do I do this in the bat file? You can run a normal PNG to PNG conversion after that is done you can simply jus...