Questions tagged [windows-command-prompt]

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

383 questions
1
vote
2 answers

Need to sort files by extension and distribute to folders with CMD, VBS, BAT

Have a Exec that likes to download the internet. Free files and such. Of course its all mixed and in a download directory. I know that one of the admins before me had a script written but took it with him. Can anyone steer me in the right direction…
mikedopp
  • 229
  • 2
  • 7
  • 16
1
vote
2 answers

Profile backup script for XP migrate to Vista

I have a .cmd i use to copy our users local files when they change computer. This works very well in XP/2000 but now i can see that we (large enterprise) are moving to Vista. And was wondering if the paths used in my .cmd would work on Vista…
1
vote
1 answer

What's the command-line equivalent of creating a new Partition through MS Windows Server?

For example, When I connect LUNs to a given server, I go into Windows Management, right click on a new disk, and click New Partition. Given Windows CMD prompt, how can I accomplish the same thing the Wizard does via cmd-line?
1
vote
1 answer

Unable to issue commands to a remote server when using IP address

I know this is going to sound crazy and I hope that I may just be missing something simple. I am trying to use psexec to restart IIS on a cluster of remote servers. The dept that actually uses the scripts only know the servers by IP address and not…
DvideBy0
  • 121
  • 3
1
vote
4 answers

net use mapping not working in batch files but works in cmd

Ok so here's the problem : I've got users using logon script in the domain (username.bat). The script simply lists 4 or 5 (net use letter: \\SERVER\directory\). However, when they open their session, the logon script doesnt work and returns system…
1
vote
1 answer

more than one start statment in the same batch file?

I wrote the following batch file: start D:\folder1\bin\run.bat start D:\folder2\bin\run.bat start D:\folder3\bin\run.bat start D:\folder4\bin\run.bat It executes the first start but then gives me the following error: windows cannot find "…
1
vote
3 answers

Where are all the places Windows environment variables set?

When I run cmd.exe and type 'set' I have a %LIB% variable set. The value is pointing to a folder that doesn't exist, which causes warnings during Visual Studio compiles. Here's the thing... If I go to System Properties->Advanced->Environment…
1
vote
2 answers

Adding a network location via a command prompt?

I'm wondering if it's possible to add a Network Location via the command prompt? This is not a drive letter mapping mind which can be achieved using the net use command.
noonand
  • 287
  • 1
  • 7
  • 25
1
vote
5 answers

Copying a chunk of output in Windows 7

I'm wondering how to copy a chunk of output in the command prompt in Windows 7. What I'm ultimately trying to accomplish is when I type "route print" I want to copy the IPs listed under IPv4 Route Table. I used the findstr command to grab 1 line…
syuusuke
  • 93
  • 8
1
vote
0 answers

Windows test network folder permissions for another account

How to test that an account other than login account has access to a network folder ? Here's an example : I'm logged in as steves but I need to test if joej has access to : \\contoso\dept\finance\payroll\taxes\
1
vote
1 answer

How to run cmd.exe using the system account on Windows 11?

I want to run cmd.exe not as administrator, but as the local system account on Windows 11. Apparently it was possible on Windows 10 using psexec. On Windows 11 with psexec v2.40 I get this error from an admin elevated…
1
vote
1 answer

winget not working unless I do

When I open Powershell, and type winget - this is the response: winget : The term 'winget' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that…
1
vote
2 answers

Change/Force CMD properties like Window size & Screen Buffer size via GPO, or other ways

Is it possible to control CMD properties like Window size & Screen Buffer size via GPO? (or a VBS script that can be pushed using GPO :) I have Windows 7 / Windows Server 2008. Many thanks for your advice. Toast
ToastMan
  • 544
  • 4
  • 18
  • 29
1
vote
2 answers

cmd pipe -> System cannot find specified path

Using cmd on Windows 10 Pro 21H2, when I try echo Hello | find "Bye" I get The system cannot find the specified path. Same thing if trying echo Hello | C:\Windows\System32\find.exe "Bye" So PATH does not appear to be the problem. I need this…
1
vote
0 answers

Is it possible to open a file within a batch file as another user?

im trying to run psql.exe (postgreSQL) with an active code page set to 1252. I want to have a batch file that opens up a command prompt with that code page, then navigates to the psql directory to run it as "postgres" user. What I have is…
Vanillaice
  • 11
  • 1