Search found 13 matches

by Jess Selien
05 Sep 2013 19:09
Forum: DOS Batch Forum
Topic: Parallel Batch with loop back to Parent
Replies: 6
Views: 7508

Re: Parallel Batch with loop back to Parent

These suggestions all work, or you can look into the start \wait flag which stops completely until the executed script is completed.
by Jess Selien
05 Sep 2013 18:54
Forum: DOS Batch Forum
Topic: First effort could use some tips.
Replies: 8
Views: 6527

Re: First effort could use some tips.

There is a nice command called choice. choice /? for details, it uses error codes from user input to pick from your menu. Start small with a test script with two options. pick it apart. if "%choice%"=="1" goto :Backup_Documents I am lazy to lookup but, maybe dos is saying 1 is a ...
by Jess Selien
05 Sep 2013 18:42
Forum: DOS Batch Forum
Topic: Batch file to install multiple softwares
Replies: 5
Views: 7770

Re: Batch file to install multiple softwares

Look into the chdir command for executing the install from the working directory. Otherwise for a permanent change you may want to look into altering the "path" environment variable.
by Jess Selien
05 Sep 2013 18:22
Forum: DOS Batch Forum
Topic: coding a batch file.
Replies: 5
Views: 4912

Re: coding a batch file.

You could create a batch script to auto generate a set style and then have it help remind you what the password is with a date\name\number combo mix. then have it answer your question to which app\computer you are using. Then always remember that the answer it gives you is a key and you add +1 or -1...
by Jess Selien
28 Aug 2013 17:17
Forum: DOS Batch Forum
Topic: Help with batch file
Replies: 2
Views: 3494

Re: Help with batch file

Strategicly placed pause commands can help you find when and where the code is at a certain time to catch where an extra loop is occurring. And to validate what a variable contains at a specific time in the script. "how it should be?" Do you have a specific question to an error message or ...
by Jess Selien
28 Aug 2013 16:47
Forum: DOS Batch Forum
Topic: DOS bat file to toggle two additions to windows path
Replies: 10
Views: 8929

Re: DOS bat file to toggle two additions to windows path

For temporary kick off of a program, I like to use the start command like this... rem rem - start xyz app- chdir /d "path" start app.exe rem This will start you off with the computer looking in that directory for any other files it may need to process. If you want a more permanent change f...
by Jess Selien
28 Aug 2013 16:32
Forum: DOS Batch Forum
Topic: set var= if true (goto) else (echo.&echo.%var%)
Replies: 5
Views: 6009

Re: set var= if true (goto) else (echo.&echo.%var%)

Sorry for the late reply and poor description.
Liviu provided the answer I was looking for.

I want the dos batch code the same to be executed multiple times but yet have a different value for the variable.

set new value
call :duh
set new value
call :duh

It is exactly what I was looking for. Thanks!
by Jess Selien
28 Aug 2013 16:16
Forum: DOS Batch Forum
Topic: Opening web page using dos
Replies: 17
Views: 16314

Re: Opening web page using dos

Reasons... Tabs are still relatively new Folks may still want to know how to automate the process. Automation is awesome. Dos tips is a great research tool for search engine lookup how to... Add on... If your starting multiple processes at once, then this dos batch code to open up multiple ie window...
by Jess Selien
28 Aug 2013 15:59
Forum: DOS Batch Forum
Topic: Display logged in user on remote XP machine
Replies: 7
Views: 12132

Re: Display logged in user on remote XP machine

tasklist /V /S %server% /FI "IMAGENAME eq explorer.exe"
by Jess Selien
03 Jul 2013 15:05
Forum: DOS Batch Forum
Topic: Opening web page using dos
Replies: 17
Views: 16314

Re: Opening web page using dos

IE 8 - windows command batch script.... Note - url1= full path. Do not put quotes around if at all possible. Placing quotes around the url path seems to confuse things. Note - Error message "Access Denied" could show up with the ping command as running a script via a batch script could hav...
by Jess Selien
26 Sep 2012 14:36
Forum: DOS Batch Forum
Topic: set var= if true (goto) else (echo.&echo.%var%)
Replies: 5
Views: 6009

Re: set var= if true (goto) else (echo.&echo.%var%)

My goal is finding a way to shorten code. Not necessarilly prove the date is correct. Another example - set streampath=D:\temp\Output.log set streammsg= set streamlog=echo.%streammsg%>>%streampath% set streammsg=Hello world if statement equ true (%streamlog%) else echo.%streammsg% set streammsg=Toda...
by Jess Selien
26 Sep 2012 13:08
Forum: DOS Batch Forum
Topic: MatriX.
Replies: 1
Views: 2791

Re: MatriX.

I would strongly recommend you create a readme.txt file to document what your script physically does. Input\output. How it functions, what its goal\purpose is, instead of having people dig through files that do not provide this information.
by Jess Selien
26 Sep 2012 12:54
Forum: DOS Batch Forum
Topic: set var= if true (goto) else (echo.&echo.%var%)
Replies: 5
Views: 6009

set var= if true (goto) else (echo.&echo.%var%)

Is there any way to set this line of code to a variable which I can execute multiple times in a program? set date= set var= if true (goto) else (echo.&echo.%date%) ... set date=Monday&%var% set date=Tuesday&%var% ...etc... In this example, what results is the date variable is set to blan...