Questions tagged [setx]

SETX is a command to set something to Windows registry or system variables through Windows Command-Line or Batch-Files.

39 questions
0
votes
1 answer

how to change config server uri dynamically using OS environment

I have a spring config server and spring config client. In client I have set spring.cloud.config.uri to http://localhost:8888 but I want to change it to some other uri say http://example.com:8888 in windows using OS environment with setx. so I…
0
votes
0 answers

Setting path using setx removed current references

I was trying to set my path using setx /M PATH "%PATH%;C:\Python27\Scripts" as given in an answer How do I add to the Windows PATH variable using setx? Having weird problems. However this appears to remove all my current path setting and the new one…
0
votes
1 answer

Android - button random position weird behavior

So I'm trying to appear 3 buttons on a random position. First im giving them a random position based on the screen size using this code: float x = new Random().nextInt(metrics.widthPixels / 2); float y = new…
Bith
  • 43
  • 4
0
votes
1 answer

Path system variable gets duplicated values when update via setx command

My below .bat file add MySQL's bin directory to system PATH though the old PATH values get duplicated. @echo off set pathMySQL=C:\xampp\mysql set p=%% setx MYSQL_HOME "%pathMySQL%" setx PATH "%p%MYSQL_HOME%p%\bin;%PATH%" I expect the PATH value…
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
0
votes
2 answers

Android - Set ImageView's position sdk 10

someone could tell me how to write this code → "ImageView1.setX(ImageView1.getX() - 1)" with sdk 10 (Android version 2.3.6 or below) because "setX" and "getX" is with sdk 11.
0
votes
2 answers

How do i replace space in environment variable (batch)

I am using this code to create an environment variable with the current date and time: setx timestamp "%DATE:/=-%@%TIME::=-%" The effect of using this command is to create a string value "timestamp" in HKCU\Environment with the data value "Fri…
Future
  • 388
  • 8
  • 21
0
votes
1 answer

change environment variable on remote Windows machine

I'm trying to set an environment variable on a remote machine. setx /s machine var value doesn't work - it produces no output and doesn't do anything. psexec \\machine setx var value says it changed the value successfully. However when I go to the…
ModdyFire
  • 706
  • 3
  • 9
  • 19
-1
votes
1 answer

I have added conda and python path to the environment variable, but jupyter notebook is still not getting opened from cmd

I was trying to add conda and python to the environment variable using SETX Command from CMD but it was failing. I tried setting it using PowerShell and it worked. The path was added successfully but I still can't open Jupyter Notebook from my cmd.
-2
votes
1 answer

How to Open File at Windows startup (when I turn on laptop)

when i turn on my laptop a dialog box opens asking me to how to open the file. It comes after logging into my wn10 user account. It comes before i start any programs. At first i was ignoring this but wen i select notepad from the list and viewed it…
1 2
3