All Questions
6
questions
1
vote
1
answer
130
views
Why the path(enviroment variable) is different between show in the cmd and the system property?(Windows10)
Before the question show, i use cmd order path = %path%D:\test to add a root in PATH(eniroment variable).When i use cmd order echo %path% , it shows:
D:\VMware Workstation Pro\bin\;C:\Program Files\...
0
votes
1
answer
975
views
Run script on windows startup with environment variable
Windows should run a script on startup that starts a DB based on an environment variable %SAPSYSTEMNAME%:
net start SYBSQL_%SAPSYSTEMNAME%
When i run this command in my cmd it works fine, however on ...
0
votes
2
answers
654
views
Erased System Path Variables
I was writing a batch file that was supposed to automatically set up a computer to receive "psexec" remote commads. Unluckly i didn't really pay attention to what i was writing and i wrote ...
0
votes
3
answers
4k
views
how to use output as VARIABLE and put trimmed value into CLIP?
can anyone teach me the right way? here is my attempt code:
@echo off
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
"%~dp0..\x64\mediainfo.exe" --Inform=General;%%UniqueID/String%% "%~dp0..\files\...
6
votes
3
answers
14k
views
Using setx to append to user PATH
My attempt:
setx PATH "%PATH%;%~dp0"
How do I do this without everything in system PATH getting duplicated in user PATH?
1
vote
1
answer
460
views
Batch script to take the output of a command and create a variable out of it?
For example, I want to search for a file
where /r C:\ "myfile.txt"
and then make the output of that command which would be the file path to "myfile.txt" a variable I choose,
So then the path to ...