Skip to main content

All Questions

1 vote
2 answers
4k views

How do I set a default directory when opening a Command Prompt on Windows 10?

I'm using Windows 10 without admin privileges. I would like the command prompt to default to a directory when I open an instance. I have tried setting the following environment variables for my user ...
Dave's user avatar
  • 124
0 votes
5 answers
1k views

Windows CMD - How to append .txt to the names of all no-extension files in a folder and its nested subfolders?

I copied all my files from Ubuntu to a new Windows 10 computer. Many of these files (literally thousands of them) are plain text files without extensions ... Every time I try to open one of these ...
Fred Flintstone's user avatar
0 votes
1 answer
783 views

In Windows 10, what default behavior can I expect when a file extension association exists, but a File Type Open Command String has not been set?

Installation of Strawberry Perl 5.30.0.1 inspired this question. Users of Active Perl have reported problems with the <FileType>=<OpenCommandString> pairs created during the installation ...
SoFarther's user avatar
  • 101
3 votes
1 answer
501 views

Finding PowerShell Cmdlets equivalent to GUI actions (cross post) [closed]

DISCLAIMER: I've read on the meta that cross-posting is OK if one is stil looking for an answer. So the following is a duplicate of a question on StackOverflow even though it is probably more ...
rmercier's user avatar
1 vote
0 answers
3k views

Is there a command for configuring Default apps in Windows 10?

I've written an installer, which associates an extension with my installed program. This is done modifying the registry and this was working fine for previous Windows versions. For Windows 10 however,...
Dominique's user avatar
  • 2,281
2 votes
2 answers
90 views

Is there a way to open non-runnable files directly from CLI

Let's say I have file without execution permission. Now a quick way to open such a file over the CLI is to use xdg-open which uses the system default to open a specific file. Is it now possible to ...
magu_'s user avatar
  • 153
0 votes
1 answer
146 views

Does changing the default program for opening a specific file affects the computer behavior?

I have some .java files that I want to view/edit in Notepad++, but I am not sure how this will affect other programs. Would the compiler still be able to compile them, or would I find some issues? I ...
malakrsnaslava's user avatar
1 vote
1 answer
3k views

How can I update the default directory for Windows Command Processor to be my home directory? [duplicate]

When I run cmd.exe, the directory I start in is my home directory (C:\Users\Edd>) When I pin cmd.exe to the start menu and run it from there the directory I start in is C:\Windows\System32> ...
Edd's user avatar
  • 399
0 votes
1 answer
484 views

Is there a “FORCMD” variable (like “DIRCMD”, “COPYCMD”, etc.)?

The dir command checks for a dircmd environment variable for default arugments to use. Likewise, the copy and move commands check copycmd. Is there a corresponding variable (by any name) for the for ...
Synetech's user avatar
  • 69k
8 votes
2 answers
8k views

Change Default Sorting Order of 'dir' Command in Windows

By default, Windows' dir command sorts files and directories alphabetically without grouping. The result is files and directories appear interleaved with one another. Sample output: F:\Dev Kits>...
Larssend's user avatar
  • 3,801