Questions tagged as 'ms-dos'

1
answer

Why is not my Menu working?

I'm creating a batch box to run a 1-line script that merges all text files into 1 only. But I do not understand why the routine is not working. Setup Batch Code@echooff:MenuEcho.Echo1-ComboMergerEcho.set/pop=Escolhaumaop‡Æo:GOTO:eofEcho...
asked by 16.09.2017 / 06:27
2
answers

Increase Performance Bat

I currently have a .bat that runs copying network files from one server to another. This made a lot of work easier for me that was done manually, but I noticed that by removing some .bat flourishes, it improved its execution performance on file...
asked by 12.05.2017 / 21:30
2
answers

How to get the serial number or ID of a USB stick on the MS-DOS system?

I've tried using some tools to get hardware information in DOS, but they did not have source code for free use. I need a code solution that returns me the serial number or ID in the MS-DOS environment.     
asked by 14.03.2016 / 21:50
1
answer

How to capture the result of a command and store it in an MS-DOS variable in a batch file?

I'm developing a batch script to run in MS-DOS and I need to capture the output of an application running on a variable, which can be used during the execution of the .bat file. The command line that provides the desired result is:...
asked by 09.09.2018 / 17:44
1
answer

Insert variable in script

I have the following script working normally @echo off if %time:~0,8% LEQ 11:59:59 goto manha if %time:~0,8% LEQ 17:59:59 goto tarde if %time:~0,8% LEQ 23:59:59 goto noite :manha echo "BOM DIA" Pause :tarde echo "BOA TARDE"...
asked by 25.09.2018 / 15:26
1
answer

Script with IF (time) less than

Good afternoon, I'm behind a command (cmd / batch) to execute a command with a condition. Ex: Checking the user name SET var=%username% IF "%var%"=="Carlos" (msg Carlos 'usuario confirmado') pause I would like another to also c...
asked by 24.09.2018 / 20:09
1
answer

Upload via FTP a whole folder using DOS

I need to load a folder (~ 300mb) that contains files from a framework (magento) to the cloud server where my application is. The server GUI only allows you to upload files individually and folder creation has to be manual one by one. To get aro...
asked by 08.01.2018 / 19:26
2
answers

End process by .bat every time it starts

Good morning! Whenever I start the computer the process GWX.exe (the famous process Install Win10 ) runs, going to the Task Manager and finish it. So I created a .bat with the following command line: @echo off TASKKILL /F /IM "GWX.exe"...
asked by 04.05.2016 / 14:16
1
answer

Deleting rows from a csv file with bat or shell

I have a file with 150k lines, in these lines I contain information that goes to a label printer. But at the time of printing, the program checks the 150k lines to see if there is any duplicity, it greatly disrupts the printing process. How c...
asked by 07.04.2017 / 23:03
1
answer

How to list only name and date of documents using the dir (ms dos) command?

Good morning, I need to create a csv file listing only name and date of the files within a given directory, but I could not identify any options of the command dir where I bring only those items, most of them have a header and the size of...
asked by 18.12.2018 / 14:26