Questions tagged as 'cmd'

1
answer

Error: escape sequence not recognized [C #]

For this code snippet in my program I get the error alert that it considers that the command has an invalid, ie unrecognized escape sequence. string.Format("/c {0}", "cd .\Debug & imagem.png"); How to proceed and make it able to recogni...
asked by 20.09.2018 / 16:31
3
answers

How to create a folder with the current date name in Windows cmd.exe

What I already have: %date% is the windows variable that stores the current date. When I use echo %date% the value Tue 07/25/2017 is correctly printed. But when I try to do mkdir %date% the created folder is Tue...
asked by 25.07.2017 / 22:18
2
answers

Execute PROMPT / CMD commands in Java [duplicate]

Good people, I would like to know how to execute this command in Java: attrib -R -A -S -H /S /D I:\*.* This program is for cleaning pendrive viruses. I already consulted some materials here in the forum, but could not apply. Basically...
asked by 27.11.2016 / 05:04
2
answers

Operations with dates

It's been a long time since I moved with VBS , so I thought of doing only command line, I'm going to delete files from 6 months ago, as the files I'm managing have names on the basis of date that were generated: bkp_201605.xml log_201601.t...
asked by 08.03.2018 / 01:05
1
answer

How to close a "folder"

I have a project in Delphi 2010 that when I click on a button opens a directory, this is the code: DirFolder := 'C:\teste'; ShellExecute(Handle, 'open', PChar(DirFolder), nil, nil, SW_SHOWNORMAL); Open this: I leave the question, i...
asked by 12.10.2016 / 17:09
1
answer

Show message if a certain word is entered

How do I get someone to write to cmd : > tree Display a message using the following command: Console.Write("");     
asked by 26.07.2016 / 23:18
3
answers

How to monitor a real-time file in Windows?

When deploying services and applications on servers, being able to monitor the log file by viewing all updates as they occur, greatly eases this task. On Linux, I use tail which only loads the end of the file and is therefore great for...
asked by 28.03.2017 / 14:27
1
answer

Set Space for Text

Good afternoon, I would like to know if there is any cmd command to set a fixed space for the text, so that it does not change the position of the rest of the sentence. In the example below, this space is the * ㅤ ㅤ ㅤ * My name is * Carlos...
asked by 18.10.2018 / 18:17
2
answers

What is the difference between "-" and "/" in CMD commands

What's the difference between using - and / in the CMD for example in the command: shutdown -s or shutdown /s     
asked by 15.08.2017 / 19:52
1
answer

Specify command for the CMD to open

I am doing a simple program with Visual Studio to execute some commands in CMD that I want, currently the program has only a simple screen and a button to open the cmd, but I would like to specify the command that the prompt should run. Eg: I...
asked by 25.07.2017 / 18:51