Click here to Skip to main content
15,891,607 members
Everything / Operating Systems / DOS

DOS

DOS

Great Reads

by Chris Boss
More about BASIC and what can be accomplished with the language
by Tough Developer
How to open 16-bit Win apps natively on 64-bit Windows using OTVDM/winevdm
by ToughDev
Exploring PCx86 - IBM PC emulator written in JavaScript
by thatraja
Printing files list(in a directory) using DOS

Latest Articles

by ToughDev
Exploring PCx86 - IBM PC emulator written in JavaScript
by ToughDev
How to develop PC-speaker MIDI player for IBM PC XT
by ToughDev
How to use NFS to transfer files between Windows and MS-DOS 6.22
by ToughDev
In order to facilitate transferring files from my main PC to my VirtualBox machine running MS-DOS 6.22, I installed Microsoft

All Articles

Sort by Updated

DOS 

11 May 2021 by 404byter
I dont know how to mix all this languages and nobody understand Please unite or delete some of them What I have tried: I try it all Somebody knows what is the name of programming for professionnal applications such as abelton live or adobe...
6 Aug 2012 by Abhinav S
You can use wildcards (regex patters etc) to move particular files.This thread[^] might answer your query.
30 Jan 2014 by Abhinav S
http://books.google.co.in/books/about/The_Best_Book_of_MS_DOS_5.html?id=w4ghAQAAIAAJ&redir_esc=y[^]
25 Jun 2018 by Aditya_ETL
I have a batch script which first copies file from one location to other folder and then creates a list of name of the files in a text file: Below Code: COPY \\CDFS23001\\SOURCE\ORG\*ACCOUNTS*.xml \\CDFS23001\\SOURCE\TGT\ dir /b \\CDFS23001\\SOURCE\TGT\*ACCOUNTS*.xml >...
5 Jul 2018 by Aditya_ETL
Hi, I am trying to include a delay of 120 secs between following two DOS commands in .bat script: COPY \\CDFS23001\\SOURCE\ORG\*ACCOUNTS*.xml \\CDFS23001\\SOURCE\TGT\ TIMEOUT /T 120 /NOBREAK dir /b \\CDFS23001\\SOURCE\TGT\*ACCOUNTS*.xml > \\CDFS23001\\SOURCE\TGT\List_Accounts.txt The above...
1 Apr 2015 by Ajit Kumar Thakur Microsoft
This tip describes steps to learn DOS batch programming.
20 Oct 2012 by Alan N
Yes it's quite clever! You've hit upon a syntax for creating an NTFS alternate data stream and I think you will have created an alternate stream named :sample.txt which is a complete copy of the original file but hidden from normal view.A bit of background is available in...
8 Apr 2013 by Alan N
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;startInfo.FileName = "cmd.exe";startInfo.Arguments = "/C attrib advancedcleanmgr.reg +s +h & cleanmgr sagerun:6553";The effect of this section of code is to start a hidden instance of cmd.exe and execute 1)...
23 Jun 2014 by Alan N
Understanding all the variants of the FOR command would be quite an achievement and I hope you started by reading the documentation http://technet.microsoft.com/en-us/library/bb490909.aspx[^].To have the filename treated as a command and have it's standard output parsed, you will need to add...
13 Sep 2017 by Alex2 101
I want to move files from a folder to another folder as a batch file based on a date span using Dos command.There will be a from date and to date specified and based on it files must move accordingly. The sub folders must be created dynamically and files according to the date condition must...
17 Sep 2017 by Alex2 101
I want to create sub folders dynamically with in a source folder of the file archived from it using batch file script. Currently while setting a directory to a variable able to do so. My need is to create subdirectory with in parent folder from which file is being moved. For example: set...
19 Apr 2013 by anupama962010
Hi,I am calling a C#.net exe(sendmail.exe) from the command file which passes the parameter to it and an email will be sent to me from the exe displaying the paramet content in the body of the email.the parameter is directory that will vary based on the server i am running...
19 Apr 2013 by anupama962010
This is not a solution, OP posted a question and has been told to refrain.
1 Jul 2013 by appleduardo
uhmm I am trying to open a .Pif file with DOSBox, currently I am running windows 7 and when I try to open the shortcut it says the following:The version of this file is not compatible with the version of windows you're running. Check your computer's system information to see whether you need...
5 Oct 2015 by Are Riff
I'm learning C++, It has been two months now.After learning many aspect of the language, I want to practice to make simple program without Graphic UI.I want to make simple games like MadLibs or MasterMind.How do I go about doing that without scrolling. I've read somewhere that they...
8 Mar 2015 by BacchusBeale
1. yes they are reversed.https://msdn.microsoft.com/en-us/library/506720ff.aspx[^]http://linux.die.net/man/3/realpath[^]2. Linux has PATH_MAX and Windows uses _MAX_PATH. You can make char buffer this size.
8 Oct 2019 by binu.emiliya
Dear All, I want to print bar codes from an asp.net application.I am using Zebra printer and i have created text files from my application below are the code to create text file Using dr As SqlDataReader = cmd.ExecuteReader() Using StringWriter ...
9 Nov 2013 by Braydon
So my batch file is like a game that has money, Well I want it to subtract if they buy something from the game,My code is below.Game.bat@echo offset money= 1000echo money left %money%echo this is a sample tradeecho 1.) Buy gem ($10)echo 2.) Buy sword($35)echo 3.) Buy...
19 Nov 2013 by Braydon
So my bat file needs to download zip files from a server and extract them to a specified folder. How can I do this without popping up a browser window to download it? And I want to download the files into a different folder. So how can I do this?
19 Nov 2013 by Braydon
I've got itwget ftp://username:********@server.com/downloads/file.zip
29 Nov 2013 by Braydon
How can I make a bat file stop working after it has been clicked so after 15 min it doesn't work forever?Is this possible?
28 Nov 2011 by brianeclus
I am confused and I can not convert this ... so then it is not Ascii and not Ansii (whatever they are)Common computer sets include ASCII, Windows ANSI, EBCDIC and Unicode. Okay I have looked those up but it is amazing how there are no pictures of these character sets ... and of course I know...
21 Apr 2016 by ByeByeByeByeBye
I have a multiline dos command to execute with C# and the command must be elevated additionally. So I need to solve it, how I would need only one Process.start construct to call multiple line dos commands at once without writing a batch file to disk?The reason for the question is: C# does...
29 Oct 2011 by cardano7
Hi,I am a windows user who doesn't know anything about linux.One of my friend's notebook laptop has been broken. it does not have CD-Rom and also I couldn't create bootable USB although I tried a lot. I have succeed to boot my friend's laptop by LAN through Tftpd32 server and...
6 Dec 2012 by choudhary.sumit
use @ like it..String str= @"something \n something"accept and rate solution if it is helpfull.Regards:sumi
15 Nov 2022 by Chris Boss
More about BASIC and what can be accomplished with the language
5 Oct 2013 by codestar007
You can check the below link for xcopyxcopy-command.htm[^]
6 Apr 2012 by Corporal Agarn
Yes, look up the BCP utility in help.
29 Apr 2014 by CPallini
There are several diff tools, like Windiff[^], for Windows.
12 May 2018 by CPallini
Did you see this: Is there a C compiler that targets the 8086? - Stack Overflow[^]? You may also choose to translate yourself the C program (if it is a simple one).
10 Mar 2020 by CPallini
Have a look at this page: batch search for windows drive letter, if exists set as variable and execute command, else try another letter - Stack Overflow[^].
4 Feb 2012 by Dalek Dave
Within excel I run a macro at regular intervals.I use the following line as part of the macro to run a batch file:Call Shell(Environ$("COMSPEC") & " /c C:\Temp\autoftp.bat", vbNormalFocus)All this does is open an ftp connection, call the .dat file to populate the required information,...
28 Apr 2017 by Dave Kreskowiak
DOS is an operating system, not a programming language. No, a batch file isn't going to be able to get the metadata out of a music file. You'll need a third party app to do this.
26 Oct 2017 by Dave Kreskowiak
Yeah, you can't do it that way. You have to map an LPT to the share first and then print to the LPT, which is explained in this[^].
25 Jun 2018 by Dave Kreskowiak
It's not a timing problem. It's a spelling problem. Look at your "ACCOUNTS" on one line and "ACCOUNT" on the next.
31 Dec 2018 by Dave Kreskowiak
DOS itself doesn't support loading .DLL's for you. Your executable code has to implement it's own loader to do this. Chances are really good that you created a .DLL file that can only be used by Windows, not DOS. Also, are you confusing a Windows, Console application that runs in a Command...
4 Nov 2022 by Dave Kreskowiak
CodeProject is not a "for hire" site. Try Freelancer.com and get out your credit card. But be warned, you get what you pay for.
5 May 2014 by David A. Gray
You may have better luck with the Clipboard (System.Windows.Forms.Clipboard). Please see http://msdn.microsoft.com/en-us/library/system.windows.forms.clipboard(v=vs.110).aspx[^]
3 Nov 2014 by David A. Gray
SA, please get a life. I've been talking to applications running in NTVDMs for years. it's not easy, but I've had much more success with the clipboard than with trying to force feed keystrokes to it.
6 Dec 2012 by Deenuji
string hello = "\u0048\u0065\u006C\u006C\u006F";Console.Write ("\t" + hello + "!\n"); // " Hello!"try like this...Happy coding:)
6 Sep 2022 by denis larocque
Hello erveryone. i have a bach script to make. i have huge folder whith name is number , inside the folder we have 2 folder saw ans welding. i need to search all folder whit name welding and rename all file inside to change extention inside...
12 Sep 2022 by denman0000
I have been searching for a few weeks now for solutions but can't find a clear way to do this. There are a number of challenges because the column vales change in size for example row in a job/printout may have a a LENGTH value of 345 while a...
23 Feb 2022 by Eddie Winch
Hi there, I have the following two Codes which make up a DOS Game Graphics Image Extracting Program, written in C :- using System; using System.Collections.Generic; using System.Text; using System.IO; namespace Unpac { class Program { ...
12 Nov 2022 by Eddie Winch
I have the following C# Code :- using System; using System.Collections.Generic; using System.Text; using System.IO; namespace Unpac { class Program { //_____________________________________________________________________ static...
12 Nov 2022 by Eddie Winch
Would this work for these parts of code for example ? :- switch(input_byte) { case when (input_byte >= 0x00 && input_byte
7 Nov 2022 by Eddie Winch
Hi there, I do understand the logic, and how to do switch Statements, but with 256 possible Hex Values all the combinations, of individual input_byte == would take a very along time to write. Can anyone help me, with a quicker way to do this ?...
5 Dec 2012 by Elerian
If you want to move all files except one single file, you can rename it before moving the other files and restore it when your done.set KEEPFILE=2012P02B.XMLset TARGETDIR=C:\FOLDERBren %KEEPFILE% %KEEPFILE%.keptmove *.XML %TARGETDIR%ren %KEEPFILE%.kept %KEEPFILE%
9 Apr 2019 by Elias Bachaalany
Practical and useful Batch files scripts for beginners and advanced users
5 Dec 2012 by esonparedes
How to get the letters/word in a filename?For Example: 2012P02B.xml - i just want to get the letters: "P02B"Please help me. Thanks and Regards!
5 Dec 2012 by esonparedes
I have .xml file in my folder. I want to specifically transfer them to another folder.For Example:FOLDER A:2012P02B.XML2012P02B.XML2012PCXB.XML2012P80K.XML2012PC6H.XML2012P93L.XML2012P02X.XMLI want to transfer all of the others except to "2012P02B.XML" to FOLDER...
29 Nov 2013 by ExcelledProducts CEO
@echo off:loopstart yourtarget.exe ...timeout /t 1200 >nulltaskkill /f /im yourtarget.exe >nulgoto loopThis will restart your program every 20 minutes.I think I will elaborate on what it does and how you can edit it.The key part is the "timeout" function witch is standard...
28 Apr 2017 by Fighting_monster
Okay, I am learning some DOS and I am currently trying to make a Batch File to sort a amount of music in a "Sorted" Folder, And to my research, DOS can't read a File's metadata. Is this true? What I have tried: I have done research online and for myself and have come up with close to nothing....
10 Jan 2023 by FormerBIOSGuy
This article describes a set of batch, AWK, and PostScript files that together allow you to create personalized, 12-page PDF calendars for some year.
3 Nov 2014 by Franz W
I am trying to send keystrokes to a 16bit DOS application that is wrapped in NTVDM. My code below currently is able to successfully send keystrokes to any application (e.g. Notepad) including the command prompt which makes me wonder why it doesnt work with the DOS application im trying to send...
6 Mar 2016 by FrostedSyntax
How to create batch files that make navigating the filesystem in the command prompt a breeze.
12 Nov 2012 by G4mm4R4y
Hello! I know there is a simple way to do this. I do not know how. So can someone help me with this question:When i have a /p variable and the user enters the wrong variable how can i stop it from closingLets say i have:set /p a=Choose a option: And the two options are start and...
12 Nov 2012 by G4mm4R4y
Hello! In my rpg i have a save method that saves variables into text files and pull the variable out later on. Is it possible instead of using user editable text files to use uneditable .dll files. I dont want to try because it takes much work to change all my save information and i want to be...
31 Jul 2013 by G4mm4R4y
Im saying this at the beginning so it doesn't happen: Don't say anything bad about batch its needed for a reason.I need wildcards in an if statement something likeif "food is good"=="food * good" echo Yes I agree it is                                              (Wildcard)Is...
23 Feb 2012 by Gary_L
I am just looking around for a DOS backup batch file that will copy all files including system files from one drive to another.Thanks,Gary
1 Nov 2022 by George Swan
I am not sure why you are using hex notation in your code. A 2 letter hex figure is simply a byte expressed in base 16 format. It is useful when using bit operatives because it displays a byte as 2 four bit nibbles. There is a technique for...
5 Mar 2013 by Ger Hayden
In a thowback to the '80's I am using a batch script to log SOAP injectionsThe output file name is time stamped but it only works properly after 10:00!echo onecho %DATE%echo %TIME%set datetimef=%date:~-4%_%date:~3,2%_%date:~0,2%__%time:~0,2%_%time:~3,2%_%time:~6,2%echo...
13 Sep 2017 by Graeme_Grant
First thing is to look at how to work with files and dates - research time... This batch file get file date - Google Search[^] has a number of solutions. This one sticks out: windows - How to get the date from a file in a bat file? - Stack Overflow[^] and down the bottom of that page is this:...
13 Sep 2017 by Graeme_Grant
Watch this: How to create multiple folders at once using a batch file - YouTube[^] Found using this Google Search: batch file to create folders and subfolders[^]
5 Jul 2013 by hansoctantan
Hello Everyone,Why this is not working in DOS Command -> Extracting a self extracting exe with passwod"D:\TIMELINE\28062013\Exe.exe" passwordBut this works finecd D:cd Timeline\28062013Exe.exe passwordPlease help, I will use this code in vb.net to automatically extract all...
8 Jan 2014 by hari111r
How to delete all the files in a folder and its subfolder using batch without prompt and also i want to delete the files even its is read only.Please help me to find solution.Thanks
31 Aug 2012 by Himansu sekhar bal
Can Any one Help me?Is there a command line utility to list file by Date and time on subdirectories.Thank you in advance.
4 Sep 2012 by Himansu sekhar bal
Can Any one Help me?Is there a batch scripts for windows utility or vc++ code to list file by Date and time .for example ...
14 Nov 2018 by ilostmyid2
remember ansi.sys? colorful prompts are not supported anymore! unless with some tools like ansicon. anyway, i need to know how can i go to the beginning of the next line. what is its ansi escape sequence? i need my prompt to be like: path > so that what i type appear from the beginning of the...
16 Apr 2015 by Jamie888
Hi, may I ask the difference between echo time and net time? Is the time returned using "echo time" a local PC time and whereas "net time" is server time?I have tried search from the Internet but I can't seem to find the answer I want.Any input is appreciated.Thank you.
16 Apr 2015 by Jamie888
Hi, I am using command prompt and I entered the following command:--> NET TIMEIt returned me the following message:Current time at......is 2:09:45 PMThe command completed successfully.As from the message above, the time do not have milliseconds. How can I include also the...
14 Nov 2013 by Jayakrishnan Radhakrishnan
Hi all,I am in a great trouble, if someone can help me, i will be thankful. i am in a application which needs to print some invoices. The invoices are printing in dot matrix printers (EPSON LX300-2). I am using crystal report to generate bills. My problem is that it is printing very slowly,...
8 Jun 2012 by Jecko Abaday
Hi,Im new to this site and i just wanted to ask if there's someone here knew how to code a Lan Messenger for which, it would not leave any traces of history of messages like using net send command in DOS? I together with my fellow team mates in the office are using net send command to...
26 Oct 2012 by Jineesh TR
hi,How can i print a text file using command prompt through usb dot matrix printerany one please help me...Regards,jineesh
8 Jun 2012 by Jonathan [Darka]
Don't take this the wrong way, but maybe you should concentrate on doing your job?You could code something to do this, but anything you do will have to go over the network and could be traced, additionally at some point one of your bosses will notice one of you chatting away and will...
27 Jan 2012 by Jyothikarthik_N
Try System.Diagnostics.Process.Start()Read more here http://msdn.microsoft.com/en-us/library/e8zac0ca.aspx[^]*Mark as answer if this solves your problem
24 Sep 2022 by JZ 2022
How do i print these numbers in vertical: (using SUB/CMP/JNE) 9 7 5 3 1 And this one but with ADD/CMP/JNE: A C E G I K M O Q S U W Y Thanks What I have tried: I tried using the commands but somehow it gives me infinite characters
17 Dec 2021 by Ken Guru
Hi, I have many directories named ".vs" which are hidden. I'm looking for the right command to suppress copying these directories in robocopy. What I have tried: I've tried various writing styles, but without success.
27 Oct 2017 by kgmmurugesh
I use type command to print a draft file to print on network printer, it shows access denied error. I am logged in as administrator. I use the dos command TYPE filename > \\computername\printersharedname. How to solve it? What I have tried: TYPE filename > \\systemname\printersharename
8 Apr 2013 by klottim
I'm Trying to hide cleanmanager when started via CMD but I can't hide it... It is still showing up and won't go away until it's finished.How can I fix this? Been looking up for answers for hours but can't find a solution.public partial class MainWindow : Window{ ...
11 Sep 2012 by kpkaran88
Hi i have one folderinside that folder i have lot of version likeV1.0.0V1.0.1V1.0.2i want to move the largest version into another directoryHow to write the batch file for moving the largest version to another directoryHow to done this..?
15 Sep 2012 by Kuthuparakkal
try compact command:http://technet.microsoft.com/en-us/library/bb490884.aspx[^]
3 Aug 2020 by l o o l
Use dir with several files/extensions: dir "C:\Folder-A\File-1.txt" "D:\Folder-B\File-2.log" ... Also use for loop to gets all the logical drivers on your system, try: rem :: In command Line : for /F %i in ('wmic logicaldisk get...
30 Sep 2015 by Leo Chapiro
Quote:an error saying too few parameters. (void function is required) Your function void even_odd(int n) expects a parameter, but you call it without any:even_odd();Try it like this:# include # include void even_odd(); int main() { ...
6 Aug 2012 by Luiey Ichigo
Hi all,I'm trying to use batch file as command to move file from current folder to another folder. From what I search in Internet, I've found a way to move all file in folder or all same extension in a folder. But I'm not found the way to move anything in folder but with exception...
15 Sep 2012 by Luiey Ichigo
Hi all,Right now I want to create a batch file which compress multiple file into a "something.zip" for example. Let say I'm using fresh windows without installing any 3rd party compression software,how would I do that? Because by default, windows itself has compression software just like you...
10 Apr 2021 by Luiey Ichigo
Hi all,Does anyone know the command line to compress a folder to zip? Like on our default Windows OS, even we don't install 3rd party software to compress, we also can compress the folder by right click the folder/file and Send To --> Compressed (Zipped)Is it possible to compress the...
20 Dec 2013 by MAbubakar.Riaz
I want to get all item names from a folder and save it in other location.what i pervious did was SHIFT+ right Click any Network folder, Open in Command prompt and write this dir /b > D:\file.txtand each and every thing's name was retrived.since now i have SSIS i need to do same...
24 Feb 2022 by Maciej Los
I'd suggest to read this: terminaltables · PyPI[^] There you'll find 3 examples. Similar question has been asked on SO, see: split - How to display two different outputs in python console - Stack Overflow[^] A win32console module looks very...
9 Jun 2014 by Manikandan K
Hi experts, I have a problem in my application, in which I want to enable Captcha Options If the Server gets simultaneous requests from the same IP address. That is, If my website receives 10 or more requests from the same IP address within the short time period (say 10 seconds), then...
25 Sep 2012 by Mazumder.Soumen
This command should work for it.COPY /B test.txt USB002
26 Sep 2012 by Mazumder.Soumen
I thought that USB002 is your printer port. Sorry for the confusion. First you need to map your printer to any of avilable printer port. To do that follow the step as given below1. Open the Printer Property Page.2. Go to the share / sharing tab. Check the Share button and give the one...
29 Oct 2011 by Mehdi Gholam
If you want to recover a windows system try : BartPE[^]It supports networking and USB drives if they are plugged in before boot.