Tag Info

Hot answers tagged

6

Try dir *.doc*. Also make sure that your command prompt is looking in the correct folder. Remember that it does not look in sub folders.


3

Compress and copy to destination folder Use the following command: 7z a C:\DestinationFolder\file.7z c:\file.mdb Notes: a is add See link below for the full manual for the command line version of 7z. Further reading Command Line Version User's Guide


2

You missunderstood the regular expression syntax. rsa.{3,13} greps for strings starting with rsa, followed by 3 to 13 repetitions of any character (. is the wildcard character in regular expressions). To grep for the key ID, use match groups. You cannot do this using a single grep statement, and either have to use two of them or switch to another tool, for ...


2

Use a loop: num=1 while [ $num -le $seasons ]; do mkdir $title/"Season $num" num=$[ $num + 1 ] done Explanation We're using the [ test operator and $[ evaluation operator (they look alike, but are completely different). [ $num -le $seasons ] tests if $num is Less or Equal than $seasons; $[ $num + 1 ] adds one to the numerical value of $num and ...


2

Use the start command to tell CMD to open the file in a background process. Putting it on all lines will cause CMD to exit after opening the files; putting it on all but the last line will cause CMD to stay open until the last program (notepad or whatever your .TXT handler is) closes. The seemingly-extraneous "" is just there to keep CMD from treating the ...


1

How do I control Windows Services from a batch file? for example to enable/disable Services To disable the service: sc stop service_name sc config service_name start= disabled To enable the service: sc config service_name start= auto sc start service_name Syntax SC [\\server] [command] [service_name] [Options] Key server - ...


1

A common scripting language to manage windows systems is PowerShell which ships with all windows versions since Vista. Run it by entering Powershell in your start menu search field. In PowerShell it's easy to start/stop services and it's obvious what you're doing at the same time. You can list all services like this: Get-Service Detailed service ...


1

Make a(nother) batch (e.g.: BatchFile.bat) file that contains: :Dial Rasdial Connection_Name Username Password if %errorlevel% GTR 0 goto Dial Then call Start "" BatchFile.bat from your original batch file. When RASDial exits normally it will exit with errorlevel 0. The If statement checks to see if the error level returned by the previous program ...


1

I want to know the command line argument—or if there is a way—to create an alias for the executable so that the alias will be put on my desktop instead of having to navigate to the folder it’s located in. Yes, you can. In the command line/terminal this is known as creating a symbolic link and this would be done using the ln (make links) command. The ...


1

Not really an answer to your question, but I just wanted to say ALT+ENTER works again in Windows 10 (since Windows 7 it didn't). With this you can really make it fullscreen. (I can't post this as a comment yet)


1

To add to Peter Mortensen's solution - use wmic and capture the list of installed software to a file: Open a command-line window (Windows + R, CMD.EXE) wmic /OUTPUT:my_software.txt product get name



Only top voted, non community-wiki answers of a minimum length are eligible