software:microsoft:windows:commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| software:microsoft:windows:commands [2024/03/09 21:10] – [Windows command line continue line with ^ () or use variables] superwizard | software:microsoft:windows:commands [2024/11/07 22:36] (current) – [Windows 10 folder with a name that has a trailing space] superwizard | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Windows Commands ====== | ||
| + | |||
| + | -------------------------------------------------------------------------------------------------------------------------------------------------\\ | ||
| + | |||
| + | ====== Windows 10 folder with a name that has a trailing space ====== | ||
| + | |||
| + | |||
| + | <WRAP center round box > | ||
| + | 2024-11-05 | ||
| + | |||
| + | |||
| + | Here you go: | ||
| + | rd / | ||
| + | Please remember to mark my reply by clicking "Did this solve your problem?" | ||
| + | |||
| + | You have to dig much deeper than "rd /?" to find out what my syntax did. In essense \\?\ bypasses the Windows parsing process, thus allowing file/folder names that are basically illegal. Using the same syntax you could create a folder called " | ||
| + | |||
| + | From < | ||
| + | |||
| + | |||
| + | Dir /x | ||
| + | |||
| + | note the short name of the problem folder - this will end in ~1 | ||
| + | to rename the folder type the following and press enter | ||
| + | |||
| + | ren shortname~1 | ||
| + | |||
| + | From < | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| ====== Windows command line continue line with ^ () or use variables ====== | ====== Windows command line continue line with ^ () or use variables ====== | ||
| Line 8: | Line 42: | ||
| Multiple commands can be put in parenthesis and spread over numerous lines; so something like echo hi && echo hello can be put like this: | Multiple commands can be put in parenthesis and spread over numerous lines; so something like echo hi && echo hello can be put like this: | ||
| - | ( echo hi | + | |
| - | echo hello ) | + | echo hello ) |
| Also variables can help: | Also variables can help: | ||
| - | set AFILEPATH=" | + | |
| - | if exist %AFILEPATH% ( | + | if exist %AFILEPATH% ( |
| - | start "" | + | start "" |
| - | ) else ( | + | ) else ( |
| - | .. | + | .. |
| https:// | https:// | ||
software/microsoft/windows/commands.1710018636.txt.gz · Last modified: by superwizard
