How to Replace Spaces in DOS Substrings

Disk Operating System, also known as DOS, is a text-based operating system. Its most common variation is MS-DOS, an operating system developed by Microsoft Corporation and present in Windows operating systems. When writing applications in DOS, it can sometimes be useful to replace the spaces in a substring with another character.

Instructions

    • 1

      Open the source code of your DOS application in a text editor such as Notepad.

    • 2

      Insert the following code snippet into the source code:

      set str=%str: =X%

      Replace "X" with the character you wish to substitute spaces with.

    • 3

      Click on "File" and select "Save."

Related Searches:

References

Comments

Related Ads

Featured