Search found 11 matches

by JelloOfTheMoon
04 Aug 2013 13:18
Forum: DOS Batch Forum
Topic: Loops too fast
Replies: 7
Views: 5606

Re: Loops too fast

That fixed it. Thanks for the disproportionate amount of time that was attributed to my problem
by JelloOfTheMoon
04 Aug 2013 12:41
Forum: DOS Batch Forum
Topic: Loops too fast
Replies: 7
Views: 5606

Re: Loops too fast

I don't think that line is the problem. I took out the XCOPY line and now it does it several times each second Edit: I created a new batch file with: PING -n 30 localhost> NUL pause and it works completely fine. It's something else in the batch file, not your line. Edit2: I've stripped it down to th...
by JelloOfTheMoon
04 Aug 2013 12:18
Forum: DOS Batch Forum
Topic: Loops too fast
Replies: 7
Views: 5606

Re: Loops too fast

The idea was to have it timeout after a certain amount of time because it couldn't reach the ip address.

The line fox gave me just bumped up the time to eight seconds.
by JelloOfTheMoon
04 Aug 2013 10:19
Forum: DOS Batch Forum
Topic: Loops too fast
Replies: 7
Views: 5606

Loops too fast

My code for backing up a certain set of files works perfectly, except it loops every three seconds when I need it to loop every five minutes. @TITLE Backer-upper :loop <server.PROPERTIES ( for /l %%i in (1 1 4) do set /p "=" set /p "st=" ) for /f "tokens=1* delims==" %%...
by JelloOfTheMoon
31 Jul 2013 14:46
Forum: DOS Batch Forum
Topic: File Not Found
Replies: 16
Views: 15924

Re: File Not Found

Tested:
You're awesome.
by JelloOfTheMoon
31 Jul 2013 13:28
Forum: DOS Batch Forum
Topic: File Not Found
Replies: 16
Views: 15924

Re: File Not Found

yes. The line is

Code: Select all

level-name=world

but 'world' can be changed, so I want the code to work on anything that would replace it
by JelloOfTheMoon
31 Jul 2013 12:07
Forum: DOS Batch Forum
Topic: File Not Found
Replies: 16
Views: 15924

Re: File Not Found

yes
by JelloOfTheMoon
31 Jul 2013 08:37
Forum: DOS Batch Forum
Topic: File Not Found
Replies: 16
Views: 15924

Re: File Not Found

I cannot express my gratitude! So very awesome. Thanks much!

Edit: I just realised I need to get a certain string from that line. I'm also open to loops now, I understand them (more or less). It will always be on line five, and always immediately after:

Code: Select all

level-name=

Is this possible?
by JelloOfTheMoon
31 Jul 2013 00:53
Forum: DOS Batch Forum
Topic: File Not Found
Replies: 16
Views: 15924

Re: File Not Found

Not quite. Now the problem has evolved. I need to read line five from a text file and I would prefer to do that without using a loop. Is that possible? If not, how do I do a loop?

This is what I was looking at, but it only gets line one.

Code: Select all

set /p var=<test.txt
by JelloOfTheMoon
30 Jul 2013 22:45
Forum: DOS Batch Forum
Topic: File Not Found
Replies: 16
Views: 15924

Re: File Not Found

Thanks much, but now it says File not found - ops Edit: I added the .txt extension as well as doing what you said, but not its giving me a cyclic error (cannot perform a cyclic copy). Edit 2: I removed the /s switch and that fixed the cyclic error, but now it asks if the file is a file or directory....
by JelloOfTheMoon
30 Jul 2013 20:13
Forum: DOS Batch Forum
Topic: File Not Found
Replies: 16
Views: 15924

File Not Found

Here is my code: @TITLE Backer-upper MODE CON: COLS=200 LINES=30 :loop SET timestamp=%date:/=-%-%time::=-% PING 1.1.1.1 -n 1 -w 1000 > NUL XCOPY "world\*" "%~dp0\backups\worlds\world_backup_%timestamp%" /i /s XCOPY "ops\*" "%~dp0\backups\lists\ops_%timestamp%"...