Skip to main content

All Questions

Tagged with
0 votes
1 answer
1k views

Explorer.exe opens new process even if "open folders in a single window" is chosen

When I try to open a folder, explorer starts in a new process even if "open folders in a single window" is chosen. The OS is windows 7. The strange thing is that even when I try to run explorer.exe ...
Gabber's user avatar
  • 217
11 votes
2 answers
18k views

Windows Command line: Is there any way to check syntax of bat file without actually running it?

Windows Command line: Is there any way to check syntax of bat file without actually running it?
JosephDoggie's user avatar
1 vote
0 answers
2k views

Disable Port from command line (CMD) (Devcon it can not disable a port when there is nothing plug in; I need to do this 100+ PC)

How do I disable this port from command line? Is it possible to disable Port#0005 and only Port#0005?
Laz's user avatar
  • 67
1 vote
0 answers
1k views

How to run a batch (xcopy) involving a network drive?

I would like to run this batch on a windows server 2008 : SET "DateToday=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2%" echo %DateToday% mkdir C:\Log_%DateToday% xcopy /y "\\sf1coeur\AXA-CASH\GFPz %DateToday%" ...
HeartDeath's user avatar
1 vote
1 answer
537 views

Single Shortcut runs both as UAC Admin and UAC Non-Admin

I would like a way to initiate a single command file - but that runs both with the full admin rights and the non-Admin token - Either running as non-admin - and converting to admin - or running as ...
Ross's user avatar
  • 1,336
0 votes
0 answers
41 views

Open exe from Windows Registry doesn't work

I need to start my application on Windows startup. I used this command to set the registry: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "ProgramName" /d "...
dm707's user avatar
  • 101
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 ...
NeveraX's user avatar
  • 43
2 votes
1 answer
1k views

How to "de-elevate" authority in call to bat file

I've got 3 .bat files in a directory. Two must be run with administrator privileges. One must be run without (full disclosure, I'm not sure why. It installs a windows service, and the service does not ...
Lord Farquaad's user avatar
1 vote
1 answer
758 views

Command output not working after changing codepage

I've found a rather weird issue while investigating the twisted world of character encoding. In Windows, if I type 'tree' the command works as expected but if I then type 'chcp 65001' (which is UTF-8) ...
Ricardo Zorio's user avatar
1 vote
0 answers
1k views

How to get files ordered by name with `dir`?

This used to be really easy in the old OS's. dir /o:n >> list.txt for %a in (`list.txt`) do copy %a ..\ordered And voila, there was the list of files in the other folder, created in the sorted ...
Alex's user avatar
  • 198
3 votes
1 answer
3k views

How to use command prompt to delete file with special characters?

I found this answer on Server Fault, but it is nearly 10 years old and doesn't work anyway I have files with names like: AlchBagSquare_Black°.nif League-of-Legends-фэндомы-1759411.jpeg When I ...
oscilatingcretin's user avatar
-1 votes
1 answer
2k views

How do I hide ONE line of code in the Command Prompt, not the whole window?

Hello and sorry that this is short. I was trying to make an application, using only a batch file. The code I used was: @timeout /t 3 /nobreak I did not want it to show anything, but it showed the ...
user avatar
2 votes
0 answers
5k views

Automating Chrome command line print website to pdf issue

I would like to save bunch of websites stored locally on my hard drive as pdf, and when I am doing this by choosing menu > print... > save as pdf it works, but when I am trying to do this via Windows ...
pytajnik's user avatar
0 votes
1 answer
1k views

CMD open new winodw when run php command

I am trying to execute some PHP command in my cmd window but when i run command it open new window everytime. I need that command run in same window instead of new window. Someone can please help me ...
Jalpesh Patel's user avatar
3 votes
1 answer
2k views

Windows 7: Opening Command Prompt with Shortcut Icon in Directory of Icon

I am trying to open the command prompt for the directory that the shortcut icon is currently located in. However, I want to be able to move this given icon to another directory (using my mouse to drag ...
PQStorm's user avatar
  • 33

15 30 50 per page
1
3 4
5
6 7
73