Most voted "ms-of" questions
26 questions
Sort by count of
-
10
votes4
answers23430
viewsHow to treat accentuation in. bat files?
good morning! I’m having a hard time copying a file from one folder to another via the copy command. I’m using the Encoding UTF-8, but the cmd can’t handle the accentuation for the line below: copy…
-
7
votes1
answer327
viewsWhat does the "MZ" listed at the beginning of executable code mean?
In the good times of MS-DOS I executed the command type <nome-do-arquivo> in archives .EXE and a lot of ASCII (binary code code code code) characters started by the acronym MZ. I always…
-
5
votes0
answers109
viewsWhat does high memory area (high memory area) understand in DOS?
I’m studying about memory management in DOS, and I haven’t found much information about what exactly is understood in this area of memory. Hug.
-
4
votes2
answers364
viewsHow to block a website with Delphi, vbs or msdos?
I have a user control and monitoring system and would like to block a site using Delphi or even MSDOS or vbs commands, or even using Sockets(I don’t know if it’s possible)? What I have so far is…
-
4
votes1
answer1323
viewsWhat is Delayedexpansion and why is it not enabled by default?
Usually when creating a batch that uses any code block, such as loops for or if, we ended up going through this problem and then we discovered the need to set EnableDelayedExpansion. Codes like this…
-
4
votes3
answers1929
viewsOperations with dates (delete file with date in name and earlier than 6 months) without using Forfiles
It’s been a long time since I’ve dealt with VBS, so I thought I’d just do it on the command line I need to delete files earlier than 6 months from the current date, as the files I am managing have…
-
3
votes2
answers880
viewsRun command for each file in a directory in MS-DOS
I’m making a small bat to break a branch over an application I’m mounting, where it should run sql scripts within the Mysql database. The problem is that I have to edit this bat every time I insert…
ms-ofasked 8 years, 11 months ago LeandroLuk 4,989 -
3
votes2
answers402
views -
2
votes1
answer807
viewsApplying recursion in a batch script
Some time ago I came to the need to use the Microsoft Office Document Imaging to convert a document template created in Microsoft Word as an anti-copy prevention measure of the model itself…
-
2
votes1
answer50
viewsView Log with TYPE command
I am using the type command to display a point log in the company, but it shows the contents of the entire log, only the last lines. type C:\PASTA\LOG-TESTE.log @echo off pause The | MORE parameter…
-
2
votes1
answer51
viewsWhy is my menu not working?
I’m creating a Batch menuzinho to run a 1-line script that merges all text files into 1 only. But I don’t understand why the routine isn’t working. Setup Batch Code @echo off :Menu Echo. Echo 1 -…
-
1
votes2
answers1876
viewsHow to get the serial number or ID of a USB stick on the MS-DOS system?
I have tried using some tools to get hardware information on DOS, but they did not have the source code for free use. I need a code solution that returns the serial number or ID in the MS-DOS…
-
1
votes2
answers294
viewsBoost Performance Bat
Currently I have a . bat that runs copying files from the network from one server to another. This made a job that was done manually much easier, but I noticed that by removing some increments…
-
1
votes1
answer113
viewsIdentify which partition is running the script from
In the case of prompt command we can use Windows environment variables to advance paths, such as: echo %homedrive% Which will result in the attribute letter where the sistema operacional was…
-
1
votes1
answer94
viewsScript with IF (time) less than
Good afternoon, I am 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…
-
1
votes1
answer1380
viewsHow to capture the result of a command and store in an MS-DOS variable in batch file?
I’m developing a batch script to run on MS-DOS and I need to capture the execution output of an application in a variable, which can be used during the execution of the file.bat. The command line…
ms-ofasked 6 years, 2 months ago Augusto Nunes 11 -
1
votes1
answer53
viewsInsert 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"…
-
0
votes1
answer1402
viewsFinish process by . bat whenever it is started
Good morning! Every time I start the computer beautiful process GWX.exe (the famous process Install the Win10) is executed, it is necessary to go to the Task Manager and finish it. So I created a .…
-
0
votes1
answer2811
viewsUpload an entire folder via FTP using DOS
I need to upload 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 the…
-
0
votes1
answer715
viewsHow to list only document name and date using dir command?
How to generate a csv file listing only the name and date of the files within a given directory. Since there is no option in the command dir, that generates me an output with only this data. Most…
-
0
votes1
answer100
viewsReplace filename via MSDOS prompt
I am creating a job and would like to replace part of a file name. I use the following: "rename" | caminho onde devo atualizar + nome_anterior | novo_nome However, using the above option, my file…
-
0
votes1
answer55
viewsDOSBOX does not recognize some batch script commands, how to resolve?
I was making a simple script in batchand testing with Windows 10 CMD, and it ran normally. However, when trying to run the same script with DOSBOX, the system gave error in the use of GOTO, yielding…
-
-1
votes3
answers267
viewsCreate a Bath file that performs the DIR of a folder or sets of folders that the user chooses
I wanted to create a file in bath where the user chose the place where to perform the command DIR. I’ve got it done: @echo off set /p pasta=digite uma pasta: dir %pasta%>>c:\conteudo2.txt if…
-
-1
votes1
answer231
viewsInsert msdos command into a vbscript file
I wonder if it is possible and how to insert an MSDOS command line inside a vbscript. I have this command line to get the ID of the Anydesk program, available on the Anydesk website @echo off for /f…
-
-2
votes1
answer771
viewsChanging Command Prompt Source
Is there a command line to change the font that is displayed in a cmd window? Just in this window? By changing properties menu it changes in general.
-
-5
votes3
answers93
viewsOpen Multiple Programs at Once CMD
I want to use CMD to open a program several times. Example I want to open 5 times with a single command. And not as in this example. So I don’t want this way, but any that opens with a single…