Skip to main content

All Questions

Tagged with
0 votes
1 answer
451 views

Sed for windows not working after Powershell edit

I want to automate selecting data out of a pdf file for later processing in a spreadsheet. 1: Copy all text into a .txt file, using Notepad - ok. 2: Remove all newlines, CRLF, to create a single line ...
13 votes
3 answers
81k views

How do I change automatic logon via Script or Command Line?

After deploying a Windows 7 image to Stand alone machines we run into the following problem. If we set autologon to off then we have to log in manually and activate Windows and Office - the Keys ...
0 votes
2 answers
7k views

Multicolored Batch File

I have this batch file i wrote, and i wrote it to make specific words to be different colors, as a test. But so far, i can't get any farther than this, I'm stuck, and I was wanting to use it to make ...
1 vote
4 answers
41k views

Using FORFILES to delete Folders older than 2 days

here is what i'm trying to do: Use the forfiles Command in a .cmd script to delete folders from a specified path that are older than e. g. 2 days on a win7 machine. Edit: The Situation is the ...
5 votes
5 answers
12k views

Split audio file with cue file

I have a FLAC file and a CUE file. Using the command line, I would like to split this file, with one track per file.
13 votes
5 answers
56k views

Windows 10 MSG command mystery

I'm an old-timer experienced Windows user from way back. My main computer is a Windows 7 Pro box. We bought a new PC for a new office; it of course has Windows 10 (Home) on it. I was doing some work ...
2 votes
1 answer
3k views

How to pass a second parameter with quotes ("") with cmd.exe /k?

When doing: cmd /k "C:\Python37\python.exe" D:\test a\test.py it fails because of the space in the directory name. But when doing: cmd /k "C:\Python37\python.exe" "D:\test a\...
0 votes
1 answer
3k views

USMT excluding this computer

i'm trying to use USMT to migrate user profiles from one system to another. Here's the command i'm using: C:\USMT\amd64\scanstate.exe F:\Profile /ue:DOMAIN\* /ue:%computername%\* /ui:DOMAIN\...
2 votes
2 answers
9k views

How to make an .exe or batch file of any DOS command?

I always need to run java -jar e:\abc.jar --boundHost -all- in the command promt. So I have to Run and type cmd , open the DOS prompt then I type/paste above command and press enter. Can I make a ...
1 vote
2 answers
48k views

NET USER ADMIN: "The user was successfully created but could not be added to the USERS local group"

I am running windows 7. I can not understand why I cant make changes to the user accounts using the administrator command prompt. Here is the error:
1 vote
0 answers
738 views

Windows 7 VM error VERR_PATH_NOT_FOUND cmd

i have a windows 10 host and windows 7 guest, but every time i enter this command with or without the -partitions argument i get errors for context, i'm using an elevated PowerShell and an elevated ...
8 votes
3 answers
17k views

Is it possible to "declare" a windows cmd-file (batch-file) as 32 bit?

Background: We do quite some scripting and little helpers with batch files (xyz.cmd) at work. Windows 7 is only now starting to become widespread here, and obviously, we hit the problems associated ...
46 votes
8 answers
101k views

Checking where a symbolic link points at in Windows 7

In Windows 7, how can I check if a file is a symbolic link or not, if a folder is a junction or not, and how can I check where they are pointing at (in case they are symlink/junction). Both in ...
11 votes
4 answers
53k views

Batch delete: Access is denied

I'm having issues with the del command in a batch file. When it gets to the delete step I get the message "Access is denied". My batch command looks something like this. set destPath=\\Public01\Appl\...
53 votes
17 answers
270k views

How do you open the command prompt in Windows 7 with a shortcut key?

Is it possible to open the command prompt with Windows 7 with a shortcut key, and if it is, how do you do it? I know that I can assign a shortcut key to it, but does Windows come with a shortcut key ...
1 vote
3 answers
3k views

Command similar to Linux's 'clear' in Windows

Is there any command available in Windows command prompt which has the same effect as 'clear' in Linux terminal? That means ability to clear the command window from outputs of previous executions. In ...
8 votes
6 answers
51k views

Move files from multiple folders all into parent directory with command prompt

I have multiple .rar files in multiple folders like this: C:\Docs\Folder1\rarfile1-1.rar C:\Docs\Folder1\rarfile1-2.rar C:\Docs\Folder1\rarfile1-3.rar C:\Docs\Folder2\rarfile2-1.rar C:\Docs\...
2 votes
2 answers
20k views

what does "Net user administrator /active:yes" do to a computer?

i just purchased a new laptop and had some issues with it... I called tech support and they had me run this command in cmd prompt by right clicking the cmd icon and selecting "run as administrator" ...
6 votes
3 answers
32k views

Change properties (privilege level) Command Prompt in Windows 7

I frequently use the Command Prompt to execute some system functions (like iisreset, aspnet_regiis etc) which needs elevated rights. Every time I start the Command Prompt, I right click on the CP ...
4 votes
3 answers
14k views

Input Error: There is no script engine for file extension ".vbs"

I keep getting it in command prompt, any idea why and how I may resolve the issue? Windows 7 Ultimate 32-Bit
19 votes
8 answers
123k views

Download a file via HTTP from a script in Windows

I want a way to download a file via HTTP given its URL (similar to how wget works). I have seen the answers to this question, but I have two changes to the requirements: I would like it to run on ...
6 votes
2 answers
18k views

How to connect a Bluetooth network connection using the command line

I can enable a Local Area Network interface for my machine with the command netsh interface set interface "Local Area Connection" ENABLED Is there an equivalent command to connect a ...
4 votes
1 answer
11k views

In Windows 7, is it possible to do "runas" administrator *without* using the GUI? [duplicate]

Possible Duplicate: Is there any 'sudo' command for Windows? I'm aware of the various options for setting the Run as administrator flag, and for opening an elevated console window. But what if I have ...
6 votes
3 answers
77k views

How to use the NET SEND command from Windows 7 to Windows XP?

I want to use the NET SEND command to send a message from my machine to another in a local network. My machine is Windows 7 Home Premium, and I want to send a message to a Windows XP Home (SP2) ...
0 votes
1 answer
3k views

'Net Use' Command Works in Win 7 but not XP. Why?

I wrote a script to dynamically map drives for our users. The script it generates is a simple 'net use' command that looks like this: net use * https://oursite.com/bobs_stuff This works perfectly ...
1 vote
4 answers
772 views

How do I install commands on command line? - Windows 7

Hi I often use Power Shell on Windows 7 I'm often typing commands like C:\Python26\ python.exe example.py C:\Python26\scripts\ pip.exe install examplePy C:\Python26\scripts\ easy_install.exe ...
5 votes
4 answers
8k views

powertoys Windows 7 replacement

I'm looking for PowerToys for Windows 7, does anyone know where I can find the "Open Command Window Here" thingy?
8 votes
3 answers
2k views

Which cmd commands have been deprecated?

I know that xcopy is marked as deprecated, with Robocopy being its replacement. Now I found that cacls is also deprecated, with Icacls as its replacement. Are there more commands which are now ...
2 votes
2 answers
797 views

How do I add "Open Folder in cmd.exe" to the shell in Windows 7?

how do I add an option to open a folder in cmd.exe to the context menu of a folder? In Windows XP this can be done by going to the folder options, clicking file types, selecting folder, pressing ...
1 vote
1 answer
380 views

Batch file with elevated permissions is not working?

After seeing this solution: How to run batch file command with elevated permissions? I put this in a batch file: powershell -command "Start-Process cmd -ArgumentList '/c %CD% && elevated.bat'...
1 vote
1 answer
1k views

How can I see the contents of a USB drive through cmd?

Can't boot into Windows. I am trying to replace certain files in the system32/drivers folder from cmd through the bootable installation disc. The files I want to use are on a USB driver. I basically I ...
3 votes
2 answers
4k views

Is there a way to toggle the Windows "compress this drive" command through a command prompt?

My friends laptop (a 64-bit Windows 7 Home Premium with 4GB RAM) was running slowly and she asked me to take a look at it. One of the things (besides that the disks had not been defragmented for a ...
6 votes
5 answers
14k views

Enable/disable the "Show hidden files" setting from the command line

In Windows Explorer, the setting Show hidden files, folders and drives can be enabled and disabled under Organise > Folder and search options > View. Is there another, quicker way to enable/...
3 votes
2 answers
15k views

How do you create system variables via batch file for Windows 7?

How can I create a batch file which creates a new system variable? (You know, in advanced system settings > environment variables > System Variables). I want to create a new variable named ...
6 votes
3 answers
116k views

How can I easily get the manufacturer and model of my monitor?

How can I get the manufacturer and model of my monitor from within Windows, without having to disconnect and manhandle a 27" inch monitor looking for a label that may not exist, or download any third-...
0 votes
1 answer
33 views

Command line open window

I used to connect to two external displays. and now I'm using only laptop screen. When I open command line, window doesn't open in laptop display and I have to use 'move' to drag it into laptop screen....
4 votes
4 answers
33k views

runas - 1326: Logon failure: unknown user name or bad password

I tried to execute notepad from cmd using the following command- runas /noprofile /user:<username>@<ip> notepad Then I got this output where I was asked to enter my password Enter the ...
9 votes
1 answer
1k views

Why can I create a remote directory through Windows Explorer, but not from the command prompt?

I'm using Windows 7 and have a remote folder available. Let's call it \\mycompany-portal\somefolder\attachments. I can map a network drive to the folder root, so Z:\ points to \\mycompany-portal. I ...
0 votes
2 answers
137 views

How to set the command (cmd) prompt colors

Pretty easy to do in Bash, but, for the life of me, I cannot find a way to change the prompt (and only the prompt) colors in Windows 7's cmd window. Note: the solution suggested in the comments seems ...
1 vote
2 answers
17k views

Powershell Start-Process -Credential

I seem to have some issue with running elevated administration using powershell. To be honest, im not that good with powershell. So im running this script [powershell -command "Start-Process ...
18 votes
1 answer
256k views

Access entire C drive from X source boot? [closed]

I would like to be able to access the entire C drive as my title says from booting in x source cmd whilst in repair mode, is this possible?
8 votes
4 answers
31k views

How can I turn on File and Printer sharing, and the Firewall from the Windows command line

I am using PsExec to access cmd on a Windows 7 computer on my network, and I want to turn on File and Printer Sharing, followed by the Windows firewall without having to get up and walk all the way to ...
1 vote
2 answers
11k views

What command line can I use to start sync of Windows 7/10 offline files?

On Windows, I would like to start sync of offline files from the command line and after the fact be able to see in Sync Center when it either started or completed (and the result). mobsync.exe does ...
14 votes
5 answers
114k views

PING cmd request timed out for all websites but sites are accessible through browsers

ping google.com is not working in my windows7 cmd prompt. but google is accessible via browsers below is the snap shot Note: None of the website in pinging.. all requests are timed out But the same ...
37 votes
3 answers
73k views

Enable/disable Windows 7 device via command line

I have a device that I often enable and disable using the Device Manager. I'd like to write a script to do this programmatically (that is, using the command line). I saw a program called devcon that ...
1 vote
0 answers
228 views

How to change VPN properties using cmd in Windows 7

With all this virus stuff, my company sent me to work at home. But when I connect to my company's VPN, I lose the internet connection. I have read on the internet that I must disable the option "Use ...
0 votes
1 answer
2k views

Force applications to open in the foreground when launched from iexplore

I have a slight problem with my project I've working on... I have replaced explorer with iexplore in kiosk mode. iexplore loads a speeddial type of webpage for a set of windows programs. I launch ...
1 vote
1 answer
662 views

Windows 7 - Hyper-V - Boot manager failed to find OS Loader

This virtual machine has worked before but when switching between computers something happened with the file. When starting the Windows 7 virtual machine I get the following error on both computers: ...
1 vote
2 answers
3k views

CMD window size

Every time I open cmd the window size is 20x5. The problem is that even though the default settings are set to 80x25, it doesn't do anything and the properties need to be changed every time the cmd is ...
1 vote
4 answers
28k views

Windows 7 Disable Proxy via cmd - and put in effect

Windows 7 (64-bit) Disable Proxy via cmd - and put in effect? I have found the correct registry key to change, and have code to change it. reg add "HKLM\Software\Wow6432Node\Microsoft\Windows\...

15 30 50 per page
1 2 3
4
5
22