Search found 19 matches

by rasil
28 Feb 2021 14:31
Forum: DOS Batch Forum
Topic: Blank FTP response!
Replies: 2
Views: 23

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: 2
Views: 23

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: 870

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...
by rasil
11 Jan 2021 10:03
Forum: DOS Batch Forum
Topic: Is there a way to make a bootable batch file?
Replies: 5
Views: 759

Re: Is there a way to make a bootable batch file?

This existed in MS-DOS, and was called AUTOEXEC.BAT: The first thing MS-DOS did after booting was to automatically run AUTOEXEC.BAT. Now you can still legally do that using FreeDOS. Windows is different. It is not an open-source operating system. Its commercial license forbids you to copy it to ano...
by rasil
11 Jan 2021 08:40
Forum: DOS Batch Forum
Topic: Is there a way to make a bootable batch file?
Replies: 5
Views: 759

Is there a way to make a bootable batch file?

Hi, Recently i made a batch file " operating system " that can connect to the internet, download files, manage files and common desktop apps such as notepad.. but I was thinking about how to make this a bootable iso file so I searched on google and found someone already did it but Microsoft did not ...
by rasil
12 Dec 2020 13:45
Forum: DOS Batch Forum
Topic: how to display all lines in an txt file as a variable
Replies: 2
Views: 996

how to display all lines in an txt file as a variable

Hi!, I am having some problems loading a txt file line by line and then being able to save all that information into a variable. i have tried this FOR /F %%i IN (log.txt) DO ECHO %%i but it only displays text before an space. The text inside log.txt has spaces so i would like to desplay the full len...
by rasil
02 Dec 2020 13:27
Forum: DOS Batch Forum
Topic: copy files from folder to where the batch file is located
Replies: 2
Views: 1057

Re: copy files from folder to where the batch file is located

just a follow up I was able to do this with this script

Code: Select all

SET src_folder=WINSCP
SET tar_folder=%cd%
for /f %%a IN ('dir "%src_folder%" /b') do move "%src_folder%\%%a" "%tar_folder%\"
by rasil
02 Dec 2020 13:03
Forum: DOS Batch Forum
Topic: copy files from folder to where the batch file is located
Replies: 2
Views: 1057

copy files from folder to where the batch file is located

hi,
I want to move files from a folder to where the batch file is located. I cannot simply just do

Code: Select all

move c:\WINSCP\*.* c:\?????
because the destination folder could be named anything or be anywhere when its in a different machine. e.g. desktop
by rasil
04 Nov 2020 15:56
Forum: DOS Batch Forum
Topic: Error with creating a .bat file from a batch file
Replies: 1
Views: 1081

Error with creating a .bat file from a batch file

Hi everyone! Here i just want to create a simple batch file called d.bat from a batch file. @echo off echo @echo off>d.bat echo :l>d.bat echo if exist d.d goto a>d.bat echo goto l>d.bat echo :a>d.bat echo start x.bat>d.bat pause exit But when I run this batch file all i get in the output batch file ...
by rasil
31 Oct 2020 10:36
Forum: DOS Batch Forum
Topic: My batch code coming up as virus please help!!
Replies: 1
Views: 1143

My batch code coming up as virus please help!!

hello everyone, I have a coded batch file called docx but when i convert it to a exe file windows defender immediately flags it as malicious :!: . I did a virus total scan and it came up with several warnings and errors. I was considering creating a download link because the code is very long (1109 ...
by rasil
28 Oct 2020 12:00
Forum: DOS Batch Forum
Topic: Detect when a batch file crashes or closes unexpectedly?
Replies: 6
Views: 1649

Re: Detect when a batch file crashes or closes unexpectedly?

Great! :D Your program works flawlessly with both of your guys's info I whipped up my own version stated below are all the batch files required to make this work. to test this out please place them in one folder and place your .exe with them. 1st batch file is called error.bat @echo off if not exist...
by rasil
27 Oct 2020 05:24
Forum: DOS Batch Forum
Topic: Detect when a batch file crashes or closes unexpectedly?
Replies: 6
Views: 1649

Detect when a batch file crashes or closes unexpectedly?

I have a little program called watchdog.bat that is ran silently in the background. It monitors another batch file called ape.bat . When ape.bat encounters a crash watchdog.bat should run a batch file called error.bat to inform the user that ape.bat has crashed! watchdog.bat should still be running ...
by rasil
31 Jul 2020 10:37
Forum: DOS Batch Forum
Topic: help with loading an file!!
Replies: 4
Views: 1343

Re: help with loading an file!!

so what if i have a batch file and lots of programs for it then ill just put package.txt file in the same directory and the batch file and run it then i will be able to run package.txt file inside the batch file for example: Main.bat Main.bat has a lot of programs written for it! (Program1.txt) @ech...
by rasil
31 Jul 2020 10:09
Forum: DOS Batch Forum
Topic: help with loading an file!!
Replies: 4
Views: 1343

Re: help with loading an file!!

thanks for replaying!

I just want to have a batch file and a package.txt file when i run the batch file there should be a batch file created!