How to create unique code matrix in CMD?

Asked By 20 points N/A Posted on -
qa-featured

I have windows XP installed and don’t know about CMD commands much.

I was wondering if someone will tell me how to create unique code matrix in CMD?

Any kind of help would be appreciated.

SHARE
Best Answer by JohnnyTango
Answered By 0 points N/A #164137

How to create unique code matrix in CMD?

qa-featured

Hey Marie,

It's pretty easy. Follow the steps and you will get your own code matrix-

First, open up notepad and write the following codes:

@echo off

color 02

:start

echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%

go to start

Now, save this as a .bat file and run it! You will get your code matrix.

Best Answer
Best Answer
Answered By 0 points N/A #164138

How to create unique code matrix in CMD?

qa-featured

I don’t understand what you mean by matrix but if you are not that familiar with different DOS or CMD commands, then the information below will surely help you. I was heavily introduced with the different DOS commands when I was still studying in college because it’s really a necessity to study it that time.

To start using the DOS commands on your computer, click Start then Run. Type cmd on the text box then hit Enter. You can also open it the other way around by navigating to Start, All Programs, Accessories, then select Command Prompt. Check with the image below.

Here are some of the DOS commands:

  • dir – is used to display files and folders in a directory or folder.

    • Syntax: DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]
  • cls – this is used to clear the screen.

    • Syntax: CLS
  • cd – can be used to display the present directory name and to transfer or change to a different directory or folder.

    • Syntax:

      • CHDIR [/D] [drive:][path]
      • CHDIR [..]
      • CD [/D] [drive:][path]
      • CD [..]
  • md – this command creates a new folder or directory.

    • Syntax:

      • MKDIR [drive:]path
      • MD [drive:]path
  • copy – this command copies a file or files to a different location.

    • Syntax: COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B] [+ source [/A | /B] [+ …]] [destination [/A | /B]]

To better understand how to use the commands, type the DOS command followed by “/?”. For example, “del/?”.

Answered By 590495 points N/A #292035

How to create unique code matrix in CMD?

qa-featured

If you want to learn more DOS commands, here are a few more.

Echo – this command displays messages in the DOS environment. It also turns on or off the command-echoing. This is mostly used in batch files (.bat) to display messages on the screen. If the command-echoing is not turned off, it will display the command prompt for every line. This is normally turned off in batch files. Syntax:

  • Echo [on/off]
  • Echo [message]

Example with echo turned on:

@echo on
Echo Hello world!
Echo echo is on.

Output:

C:\>Echo Hello world!
C:\>Echo echo is on.

Example with echo turned off:

@echo off
Echo Hello world!
Echo echo is on.

Output:

Hello world!
echo is on.

Del – this command deletes one or more files. Syntax:

  • DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names

When the “/p” switch is used, it will prompt you before deleting every file. When the “/f” switch is used, it force deletes read-only files. When the “/s” is used, it will delete the particular file from all subdirectories or subfolders. The “/q” switch is the quiet mode. It will not prompt you when deleting files when using wildcard.

When the “/a” switch is used, it will select files to delete according to attributes (“r” for read-only files, “h” for hidden files, “s” for system files, and “a” for files ready for archiving). Example:

C:\>del file.doc /p

Related Questions