Variables Related Problems & Solutions

25 tags
Refine Tags
Search Tags:

Start a discussion

Results 1 - 25 of 25
[Solved] Batch File To Set Registry Values As Variables
Summary: I am trying to find a way to store a registry key value in a variable to use it later. For example: some data in a value is a full path to an executab...

[Solved] How to stop a SPACE from importing as part of a variable?
Summary: I have a script that exports the first 3 octets of an IP address to a file (IP.txt). When it exports, it is adding a space at the end of the line, as ...

Why does the %1random% variable not work!?!?!
Summary: :: I am trying to create a program that creates a series or random numbers and count all their :: possibilities. You can create different numbers of ...

[Solved] Batch text settings file
Summary: Hi, I need some help with batch. I want a code that reads a txt file and looks for something like this: lamp=1 And if it finds it, it will assign a va...

[Solved] What am I doing wrong with my batch IF/THEN?
Summary: Hello, I'm making a coding language for one of my buddies as a joke. It'll probably never get finished though, because I suck at batch :( Can somebody...

Calculating Variables In Visual Basic
Summary: I need help with making a calculator in VB. The calculator solves problems like this: 5x +7 - 3 = 66 - 90 * -5 Instead of the usual x + y = z, I am tr...

[Solved] How do i Save/Load Batch Variables From a text file?
Summary: How do i Save/Load Batch Variables From a text file or any other file? is this possible? and if so how do i do this?? ...

Please help me with my pascal homework?
Summary: CANNOT get it i tried for hours write a program that will accept 2 values into the variables A & B. Your program should then determine which variable...

[Solved] batch - for to set the letters of a word-
Summary: hey guys. i am wondering if it is possible to make a for loop read a file which inside has eg test or t,e,s,t how would i make it so that it sets each...

ms-dos question inputing variables
Summary: im making program of course converted to .exe next, to make huge logins i cant put everything in my program so i decided to move loins to orther progr...

Set a random number up to a value stored
Summary: Hello all, I'm having some trouble to find a way out of this: I want to rename a random file in a folder (all files are numbers starting from 1, and I...

Nested Delayed Expansion Variables in Batch
Summary: Hello, I'm writing a batch file to pull in information from two files - one that contains computer names and one that contains ip addresses. I want to...

Making a batch file to pull variable from txt
Summary: Hello, the title max maximised very tight. So my problem is, I am making a program to help me doing things on my computer from there. Well what it doe...

Set variable as input without pressing Enter?
Summary: (This is for XP btw) Is it possible, in batch, to set user input, such as a file being dragged on to the window, as a variable without pressing enter?...

[Solved] Pass a variable from VBS to batch
Summary: I am working on a batch script for my specific purpose. The batch has launches a program like so: start /w program.exe %1 This way I can easily pass v...

Add VAR to bach file
Summary: Hi, I have been looking around and getting stuck. I have a smile batch file to track how many open connections are on a webserver. echo %time% >>conn...

txt file name into a batch variable
Summary: Here's my problem. I want to write a batch script that automaticly runs Javac to create a class script from a .Java file by dragging the .java file o...

Problems opening Windows XP environment variables
Summary: ok so i accidentally deleted my environment variables..now it wont let me run half my programs..including restore..and other important things...it won...

batch get 2 vars from one line in txt file
Summary: Hi! I have a file named file.txt. The file contains unknown number of lines. Each line contains file:password. I would like to use batch file in readi...

Batch file with variables in a txt file
Summary: I need to create a batch file which will get its variables from a text file. What I'm trying to do is create a file which will use a 3rd party command...

Echoing variables into text documents
Summary: For some reason, when I run any code along these lines: SET Variable=Hello ECHO %Variable%>filename.txt It creates the file, but what is echoed into t...

If Statements and Time
Summary: I was wondering if there is a way to execute certain programs at certain times without using Scheduled Tasks. Basically, I want reminders to pop up at...

file name to variable
Summary: Hi Folks, I have just started using batch files for the first time today! I want to set the 32 different variables v1 to v32 to the file names of 32 ...

Batch file loop variables
Summary: Hello all! I am trying to create a batch script which is waaaaaaaay more complex than I know how to code for... but I know it can be done somehow, so ...

Input variables from file
Summary: Hi, I have gone through this forum and I have not been able to find exactly what I am looking for. I want to create a batch script (XP) to basically ...

1


Ask Question