You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
path correction
About this tag
Discussions tagged with 'path correction' on WindowsForum.com focus on resolving file path issues in Windows command-line environments, particularly in batch scripts and CMD.EXE. A recurring theme involves troubleshooting errors when passing file paths to commands like 'wc' or using variables with 'SET /P'. Users seek methods to correctly handle paths with spaces, special characters, or relative locations to avoid 'file not found' errors. The tag covers practical solutions for path syntax, variable assignment, and command output redirection in Windows 10 and other versions, emphasizing reliable scripting techniques.
Hi!
I tried to send command output to variable.
I'm using is in Windows 10.1903 x64
I used syntax:
SET /P variable= | command
I used batch by context menu to get word, characters and lines count in text file using old WC tool (it's great).
First I used only copying output into clipboard by...
batch file
character count
clipboard
cmd
command output
error resolution
file path
line count
message command
output
pathcorrection
script help
scripting
set command
syntax error
text count
variables
wc tool
windows 10
word count