Search found 1007 matches

by abc0502
30 Apr 2013 20:45
Forum: DOS Batch Forum
Topic: HLP BEGGED!
Replies: 14
Views: 12230

Re: HLP BEGGED!

Can you explain what it should be doing ?

About the loop problem, all below labels/functions
:bypass
:loop.countChar.2
:end
They all after the exit command and all must end with "GOTO :EOF" command
by abc0502
30 Apr 2013 05:31
Forum: DOS Batch Forum
Topic: compare log file timestamp wth system date
Replies: 16
Views: 13639

Re: compare log file timestamp wth system date

how do you want to extract the data ? for example, you enter a number that represent an amount of days let's say 22, and the batch will display the last 22 days. is that what you need ? or you want to enter a date in format DD/MM/YYYY, and how many days after or before that date to display ? Hint: y...
by abc0502
28 Apr 2013 21:41
Forum: DOS Batch Forum
Topic: Mapped Network Drives and Batch Files
Replies: 1
Views: 3665

Re: Mapped Network Drives and Batch Files

This Batch Should Backup & Restore All Your mapped Drives. It Backup the Mapped drives in a .log file in the same folder where the batch exist, and it reads it to restore the resources. Backup & Restore Mapped Drives @ECHO OFF REM Log File That Will Contain Mapped Resources SET "LogFile...
by abc0502
28 Apr 2013 04:40
Forum: DOS Batch Forum
Topic: Help with loop increment & variables
Replies: 12
Views: 9535

Re: Help with loop increment & variables

moving forward or backward is depending on where your label is. when using goto to check answers like yes/no, you use it to move on in the code. the way the example work is just for the first time the code move like any batch executing command after the other but it reach to the goto command which p...
by abc0502
28 Apr 2013 03:09
Forum: DOS Batch Forum
Topic: Help with loop increment & variables
Replies: 12
Views: 9535

Re: Help with loop increment & variables

how to loop a segment of code? You can loop a block of code using different methods, but which one to use will finally depend on the use of your block of code. 1) using labels and goto Command This way you can loop for infinite time unless your block of code has a condition that exit the loop @echo...
by abc0502
27 Apr 2013 04:10
Forum: DOS Batch Forum
Topic: Help with loop increment & variables
Replies: 12
Views: 9535

Re: Help with loop increment & variables

if you can explain in details, that will make us help you faster, instead of keeping ask you for more information in each post.

note:
Set varA00="c:\folder\patch1.ext"
the red quote should be like this
Set "varA00=c:\folder\patch1.ext"
make it around the whole variable
by abc0502
24 Apr 2013 22:28
Forum: DOS Batch Forum
Topic: Batch-Script for ping test with colour change and logging
Replies: 11
Views: 16600

Re: Batch-Script for ping test with colour change and loggi

you can remove this line "if %time% neq %lastTime% (" and the close parentheses before the Goto command.
And you will get the bar changes in real-time.
but it's better to disable the logging or you ill get a very big log file at the end.
by abc0502
24 Apr 2013 20:30
Forum: DOS Batch Forum
Topic: Batch-Script for ping test with colour change and logging
Replies: 11
Views: 16600

Re: Batch-Script for ping test with colour change and loggi

I Like it too, nice idea if you Add a Time and date stamp to the Log file like Foxidrive did, and it will be perfect Edited: I changed the code a littlebit and add what i said above You can choose to log the Reply by setting the variable "LoggingMode" to yes or set it to any thing else (n...
by abc0502
24 Apr 2013 15:42
Forum: DOS Batch Forum
Topic: Batch File to access and operate on a remote linux machine
Replies: 3
Views: 3823

Re: Batch File to access and operate on a remote linux machi

It Seems That This "ZOC5" Program Has It's Own Scripting Language. I'm Not Sure if Batch file is what you looking for, Also it's a unix system i think it should be "Bash" commands. If You can Establish an FTP Connection from windows system to unix system, then you can use the ftp...
by abc0502
24 Apr 2013 00:25
Forum: DOS Batch Forum
Topic: Batch-Script for ping test with colour change and logging
Replies: 11
Views: 16600

Re: Batch-Script for ping test with colour change and loggi

Great Job Foxidrive, it works perfectly :D
by abc0502
23 Apr 2013 17:31
Forum: DOS Batch Forum
Topic: Batch programming help - variables
Replies: 4
Views: 5417

Re: Batch programming help - variables

You can only pass variables from batch files while the batch file creates the inbound file, as the sftp command is the one who reads the file, so it can't modify or replace any words inside it, even if the batch reading the file it won't unless you code it in a way the make it do that.
by abc0502
23 Apr 2013 17:00
Forum: DOS Batch Forum
Topic: Batch-Script for ping test with colour change and logging
Replies: 11
Views: 16600

Re: Batch-Script for ping test with colour change and loggi

This is supposed to make cmd screen red when it exceeds a certain time latency and make it green as long as it less than the latency set by user. Also, log the ping in a file set by the user. But for some reason, comparing the times is not working right ? Here is The code, if any one else can fix it...
by abc0502
23 Apr 2013 15:43
Forum: DOS Batch Forum
Topic: Creating a Batch File on multiple iteration simulation.
Replies: 1
Views: 2728

Re: Creating a Batch File on multiple iteration simulation.

Putting your code as a function, and using if command to check for the user if he input "N" or input "number of iteration" then pass that number to a for command that count and run the function. something like that: IF /I "%~1" == "N" ( SET "num=1" F...
by abc0502
23 Apr 2013 15:34
Forum: DOS Batch Forum
Topic: Batch-Script for ping test with colour change and logging
Replies: 11
Views: 16600

Re: Batch-Script for ping test with colour change and loggi

so you don't want any other thing on screen but the colors red and green ?
and What Exactly what you need to log? The Pings?
by abc0502
23 Apr 2013 15:25
Forum: DOS Batch Forum
Topic: Batch file needed to copy and delete original files
Replies: 5
Views: 11545

Re: Batch file needed to copy and delete original files

That Will change every thing, Just set a FTP connection, ( i didn't try it before between two different systems but it could be the same ) @Echo OFF SET "USER=root" SET "PASS=1234" SET "Remote=123.456.7.890" SET "NetworkDrive=%userprofile%\desktop\Test Folder"...