Questions tagged [ms-dos]

MS-DOS was the most popular operating system for desktop PCs until the mid-1990s. Do not use this tag for questions about Windows command line programs or scripts.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

FreeDOS not working, kinda?

I am trying to make a usb bootable with rufus to run freeDOS, however, it may turn on, but then I cannot type anything. I also tried with the original DOS image with rufus and still, nothing worked. ...
Zeyrox fame's user avatar
2 votes
2 answers
86 views

Windows 11 DOS FOR/IF

I am trying to include in a batch file a check to see if a java process is already running before attempting to start it. I have the following working command: FOR /F "tokens=*" %g IN ('wmic ...
Gavin Baumanis's user avatar
2 votes
1 answer
59 views

Need help echoing audio sound cards to a text file in a dos bat

I have 8 sound cards installed and am trying to create dos code to dummy echo all the sound card exact names to text file. But ffmpeg won't echo output to a file . Here is what I have tried, and not ...
degarb's user avatar
  • 31
0 votes
0 answers
14 views

Had a folder issue that was solved after finding the solution here but in puzzled by the command and how it came to light [duplicate]

As the title said I had a folder problem that was sovled. It was a folder that ended with ... and that I had removed before but were still there. The solution I found that worked for me: RD /S /Q \\?\...
Conny Ljung's user avatar
0 votes
2 answers
75 views

Leave directories in dos/cmd

I enter CMD or DOS prompt, (doesn't matter) and I enter "cd desktop/" so now I am in C:\users\USER\desktop\ and now I want to leave the desktop\ directory, how, because doing "cd USER&...
Humancoder1123's user avatar
0 votes
1 answer
67 views

How do you prepend a string to each line of a file in MS-DOS?

How do you prepend a string to each line of a file in MS-DOS? And with no 3rd party commands so nothing like AWK (which I understand some have got running on MSDOS) I know CMD(The cmd console in WinNT ...
barlop's user avatar
  • 23.2k
0 votes
1 answer
60 views

Find the total time of all videos (.avi, .flv, .mkv, .mov, .mp4, .swf, .webm, etc.) in a directory using only DOS commands (Windows / .bat) and

I would like to have a .bat file that finds the total time of all videos (.avi, .flv, .mkv, .mov, .mp4, .swf, .webm, etc.) in one directory with no other frills. I want to use only DOS commands (...
SuperMusketeer's user avatar
0 votes
2 answers
59 views

VirtualBox: Need example of MSDOS with IP stack to share folders with host machine

Does anyone have an example of the config.sys and autoexec.bat to setup an IP stack on a MSDOS virtual machine so I can share information between the virtual machine and the host? A downloadle VHD ...
Ruud's user avatar
  • 1
0 votes
0 answers
70 views

(libvirt/libxl) MS-DOS 6.22: Switching keyboard mapping kills input under Xen but works normally in QEMU

Since there are some old DOS games that I want to play (namely Ultima Underworld I and II) I have set up an MS-DOS VM under Xen (unfortunately Xen doesn't support / accept virtual floppy drives so I ...
Robidu's user avatar
  • 211
1 vote
1 answer
839 views

How can I set environment variable for another user account in Windows?

My scheduled task exe runs under a domain account. I need to set an environment variable for that account but logging in as me. I did StackOverFlow some answers where they suggest editing the registry ...
HillCountry's user avatar
0 votes
2 answers
99 views

Was the MS-DOS 5 Upgrade really able to "load over any DOS on anyone's PC"?

Microsoft made a comical video in ~1991 for sales people or people running computer stores. Some of the lyrics go: loads over any DOS on anyone's PC Source: https://youtu.be/WxC6PytZMqc?t=192 Is ...
Nordholm's user avatar
0 votes
1 answer
250 views

cmd.exe - for loop and var value not changing

I'm trying to loop through music files under one directory. Why does the FILENAME var appear to have the same value each time through the loop? It does appear to be looping through files, however ...
dougd_in_nc's user avatar
2 votes
3 answers
200 views

Is there any way I can measure the runtime of a program in DOS?

I just want to measure the time it takes a program to go from start to finish. In UNIX - I can use the time command. Is there any way to do this in a MS DOS or FreeDOS?
Coder's user avatar
  • 121
1 vote
1 answer
139 views

Sharepoint/One Drive "Free up space"

I use sharepoint to host files on the cloud, with a shortcut added to OneDrive so we can browse the files through windows explorer. We have a lot of automation, which pulls files locally and processes ...
matlabgui's user avatar
  • 135
0 votes
1 answer
283 views

How do i remove all the files that contain a certain string in their name?

How do i remove str files with names containing "fr" in them ("text.fr.str") using DOS command? I tried "DEL *.fr.str". Doesn't work.
Ilfat Gultyaev's user avatar
0 votes
1 answer
193 views

How to see the commands that are executed by a silent cmd.exe

The cmd.exe process is taking up resources on a server, I would like to see what it is running. How can I do it? Task Manager
Rileon's user avatar
  • 1
1 vote
0 answers
270 views

Making a DOS 6.22 Network Boot Floppy from a Hard Drive

I have a computer (an oooold ALR, 486DX-66) that has a hard drive that boots to DOS 6.22. This ALR computer boots to DOS, loads network drivers (it has an old Dlink DE-220 network card). It then maps ...
TBone's user avatar
  • 113
0 votes
0 answers
16 views

Fix MBR for a 16-bit intel 80386sx cpu [duplicate]

i have an old classic computer running ms-dos 3.30 on computer architecture running a 16-bit cpu (80386sx, not to mistake with 80386DX which is 32-bit), i was playing around and messed up the MBR. I ...
Aqil Mehmood's user avatar
0 votes
2 answers
1k views

Rename command in dos

this is my first question here. I just revived an old pc to play dos games. I couldn't rename a folder, but I can rename files. Any idea why? Q2: How to see the full folder name in dir command? I see ...
noname delete's user avatar
1 vote
1 answer
540 views

Bash for MS-DOS? [closed]

This question was ported from Ask Ubuntu site. According to GNU link to Bash developer: Bash is the shell, or command language interpreter, for the GNU operating system. The name is an acronym for ...
Polda18's user avatar
  • 65
0 votes
0 answers
115 views

How can I view the pushd stack in the Windows command line?

As per the title, how can I view the pushd stack in the Windows command line? I see this question for Linux doesn't have an answer, so I'm not holding my breath for a Windows command line answer. As ...
JMD's user avatar
  • 4,777
5 votes
1 answer
346 views

How to run a MS-DOS/Win9x batch file containing CD while preserving the original working directory?

Consider the following batch file test.bat: CD C:\SOFTWARE program.exe This script is run from C:\ELSWHERE C:\ELSWHERE> C:\test.bat After the script exits the current working directory is now C:\...
Zhro's user avatar
  • 807
2 votes
0 answers
1k views

How to discover the Heads / Cylinders / Sectors for an "SD Card-to-IDE" adapter?

I am attempting to use a SD Card-to-IDE adapter to replace a failed HDD in an ancient DOS laptop. However I am having trouble due to not knowing what settings I should use in the BIOS with regard to ...
user882326721's user avatar
1 vote
1 answer
3k views

How to create a boot USB flash drive with DOS and GPT/UEFI?

I need to run a DOS application from the flash drive on boot, so I can create a backup image of the main hard disk. I have been doing this procedure for many years so far, but my new laptop is ...
Guybrush's user avatar
  • 151
1 vote
1 answer
296 views

DOS batch file to display netsh channel output

I'm trying to get wifi Channel output from netsh command to be 2.4GHz or 5GHz The following provides me with Channel output: netsh wlan show interface name=Wi-Fi | findstr "Channel" Output ...
mnauta's user avatar
  • 11
3 votes
1 answer
99 views

Origin of USBMS packets referring to MS-DOS

I've been messing around with traffic interception over USB (using Wireshark) when I noticed that one MP3 player was sending some odd packets in response to read request on the first block of the mass ...
user293815's user avatar
0 votes
0 answers
62 views

Why would Quake run slowly in DOS on a modern, 2017 i5 CPU?

I noticed back in the DOS gaming era that DOS games ran slowly in hi-res modes. I was surprised to discover that this could be true on a modern machine. I booted a 2017 i5 7200u (I think) laptop into ...
Leon Simpson's user avatar
1 vote
1 answer
133 views

How to discover the page code to show a specific character in MSDOS/Batch?

I made a batch-file snake game and inserted some special characters via HEX to ANSI conversion in Notepad++. It worked normally. But I noticed that there was an update to the Consolas font and two of ...
Zano's user avatar
  • 13
1 vote
1 answer
61 views

Trying to replicate tar output format on windows 10

I've been managing data at my work for over 20 years and we've always used tapes written with the unix command tar. The biproduct of this is a tar table of contents that I store for reference when ...
dinki's user avatar
  • 13
1 vote
2 answers
764 views

Why is change directory not working when SETLOCAL ENABLEDELAYEDEXPANSION is used

I have an existing windows batch script (named as test1.bat) as below : @echo off SETLOCAL ENABLEDELAYEDEXPANSION set nop=4 for /l %%z in (1, 1, %nop%) do ( set x=%%z echo !x! ) chdir /d D:\app\ ...
Shri's user avatar
  • 13
0 votes
0 answers
222 views

Accidental deletion of the System32 files in Windows

I accidentally executed the following command in cmd with administrative privilages in my c:\windows\system32 folder: del *.* /f/q/s > nul When I realized what was happening I quickly pressed Ctrl+...
SantaHopar's user avatar
0 votes
0 answers
153 views

Formatting USB drive for a MS DOS drive

My USB drive works when I format it with my floppy emulator. But when I format it to FAT16 with diskpart I get an error when I start up MS-DOS and the drive isn't usable. I've tried partitions below ...
user1721061's user avatar
0 votes
1 answer
439 views

Print to file from DOS 16-bit app

I have a legacy app which uses IPX/SP for networking and is a 16-bit DOS application. No access to source code, cannot change anything. The only way I can run it is under Windows XP. Trying to ...
nepdev's user avatar
  • 251
0 votes
2 answers
804 views

How do I make a bootable USB flash drive from a floppy disk image, and still make use of the full 32 GB?

When I format the flash drive with a image of MS-DOS and Windows 1.01, which is 1.44 MB, in Rufus 2.18 portable, the USB drive shows as 1.44 MB to match the floppy disk image. I am planning to add ...
Claudia Burns's user avatar
0 votes
1 answer
355 views

Freespace in CMD command

This command is amazing and just what I need. Thank you to who have written it. I made a bat file that shows all PC details on one screen.... So when I use this command in my bat file it keeps closing....
user1288996's user avatar
3 votes
1 answer
2k views

How to transfer files from host to DOS QEMU C drive?

I downloaded MS-DOS 6.22 and I installed it on my qemu. Now I want to transfer files from host to my DOS QEMU C drive. Edit: My host operating system is 64-bit Linux (Debian).
sbh's user avatar
  • 43
1 vote
1 answer
566 views

How do I download the RSS Feed XML file in dos command batch mode?

I have a specific requirement that I need to download the RSS feed file (it is in XML format) from the given link using dos command. I have tried the following command and it keeps giving me syntax ...
Manikandan Arunachalam's user avatar
0 votes
1 answer
215 views

convert character set (German)

I have a text file that uses various characters in the 128+ range in currently non-standard ways. The file command just says Non-ISO extended-ASCII. From the context I can recognise these: Octal 201: ...
Tomas By's user avatar
  • 169
0 votes
1 answer
116 views

Corrupted Files Delete in Windows [duplicate]

I am preparing a file using shell script and while doing some tests, I added the pause> nul line into my sh file. Then I ran the sh file, but there was a file named nul on the desktop and I can't ...
user avatar
0 votes
0 answers
483 views

What is this for a file name encoding and how to fix it?

On my Linux machine I found old files (at least from 2004 if not older), so possibly Win9x days. Maybe they came over some old FAT drive on my disk or some old Samba share. Umlaute are very weirdly ...
divB's user avatar
  • 565
-1 votes
2 answers
220 views

can i connect a Floppy Drive to USB Adapter / copy data, can i emulate a floppy drive and rip?

can i connect a 1.44MB 3.5" Floppy Drive Connector 34 PIN 34P to USB Adapter to somethign and copy the data, *(rather than connecting a floppy drive and copying to floopy and then transferign it ...
vince's user avatar
  • 1
1 vote
2 answers
1k views

How to read files name last character and and rename them by running a batch file

I have 3 files in a folder which are: XXX_a.txt XXX_b.txt XXX_c.txt The filename can be varied, only the last character of the 3 files a, b and c are not changed I need to rename the files as below: ...
newbie's user avatar
  • 13
1 vote
2 answers
8k views

How to use WMI to query IP address from specific NIC?

I have a computer with two NICs. I'm trying to query the IP address of each NIC separately to use in BGInfo. This article describes how to query the IP address of only active network interfaces. It ...
Izzo's user avatar
  • 207
0 votes
5 answers
353 views

run an old program under Win10 64 bits with parameters

I need to run in compatibility mode 2 programs for MsDos: quick basic (QBX.exe); some program called HEOB which was created in quick basic (HEOB.BAS). Normally I would create a *.bat program ...
Mircea Emilian's user avatar
3 votes
2 answers
879 views

batch file put if inside for loop error

I have a working for loop to print all zip file's name under one working directory: @echo off setlocal for %%i in (*.zip) do ( echo %%i ) I have another working if block to check and print ...
peterboston's user avatar
1 vote
2 answers
954 views

Running file from batch file

I am working in Windows 10. This is my code saved in .bat file: %windir%\System32\cmd.exe "/K" C:\Users\Alex\AppData\Local\Continuum\anaconda3\Scripts\activate.bat C:\Users\Alex\AppData\Local\...
vasili111's user avatar
  • 531
2 votes
1 answer
11k views

Eject connected external hard drive using cmd

Is there any way to eject external hard drive safely which is currently connected to the pc only using cmd? I can only use cmd right now and GUI is out the question.
Manav Singh Chauhan's user avatar
0 votes
0 answers
57 views

Set an environmental variable with the date on year in the future

I can run this command on my Mac: exp=$(date -v+8760H +"%Y-%m-%dT%H:%M:%SZ") I then run: echo $exp and it produces the desired result i.e. 2021-04-20T09:06:44Z I then modified the command to run it ...
w0051977's user avatar
  • 225
0 votes
1 answer
486 views

is it possible to install stuff to dosbox

I legally downloaded an ISO of space hulk and a copy of dosbox 0.74-3. I mounted the ISO, opened it up in dos and then in an attempt to play it, I tried to install it. The whole thing just freezes ...
tgmcroc's user avatar
1 vote
0 answers
21 views

To replace a string line with a new string after certain line

original file containing ;group 1 -epackage ....... ;group2 -epackage ....... After replaced, it should looks like this ;group 1 -epackage ....... ;group2 ;-epackage Basically what I want is to ...
Will's user avatar
  • 11

1
2 3 4 5
8