How were graphical DOS Games written? [closed]

Assembler, Pascal and C were popular languages. Graphics were generated by directly interfacing with the display hardware, for instance the Color Graphics Adapter. (CGA) Probably there were libraries, but not like today, and libraries were often not shared outside a company. A resource which would have been relevant in say, 1988, can be found here: … Read more

How to increment variable under DOS?

I realize you’ve found another answer – but the fact is that your original code was nearly correct but for a syntax error. Your code contained the line set /A COUNTER=%COUNTER%+1 and the syntax that would work is simply… set /A COUNTER=COUNTER+1 See http://ss64.com/nt/set.html for all the details on the SET command. I just thought … Read more

DOS BAT file equivalent to Unix basename command?

For command-line for /F %i in (“c:\foo\bar.txt”) do @echo %~ni For .bat Files for /F %%i in (“c:\foo\bar.txt”) do @echo %%~ni output: bar If the path contains a space, add in “delims=” like so: for /F “delims=” %i in (“c:\foo\bar baz.txt”) do @echo %~ni output: bar baz (Further Reading: http://www.computerhope.com/forhlp.htm )

copy all files and folders from one drive to another drive using DOS (command prompt)

xcopy “C:\SomeFolderName” “D:\SomeFolderName” /h /i /c /k /e /r /y Use the above command. It will definitely work. In this command data will be copied from c:\ to D:, even folders and system files as well. Here’s what the flags do: /h copies hidden and system files also /i if destination does not exist and … Read more

How to get a list of sub-folders and their files, ordered by folder-names

How about using sort? dir /b /s | sort Here’s an example I tested with: dir /s /b /o:gn d:\root0 d:\root0\root1 d:\root0\root1\folderA d:\root0\root1\folderB d:\root0\root1\file00.txt d:\root0\root1\file01.txt d:\root0\root1\folderA\fileA00.txt d:\root0\root1\folderA\fileA01.txt d:\root0\root1\folderB\fileB00.txt d:\root0\root1\folderB\fileB01.txt dir /s /b | sort d:\root0 d:\root0\root1 d:\root0\root1\file00.txt d:\root0\root1\file01.txt d:\root0\root1\folderA d:\root0\root1\folderA\fileA00.txt d:\root0\root1\folderA\fileA01.txt d:\root0\root1\folderB d:\root0\root1\folderB\fileB00.txt d:\root0\root1\folderB\fileB01.txt To just get directories, use the /A:D parameter: dir /a:d /s … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)