Search found 14 matches

by Matice
15 Oct 2008 00:14
Forum: DOS Batch Forum
Topic: xcopy "path"*.*
Replies: 2
Views: 7330

nope sorry its not working... otherwise i wouldnt have asked in the first place .. to be more precise xcopy /e /v /c /f /h /y "C:\Program Files\Debugging Tools for Windows (x86)\Crash_Mode*" c:\my\tmpdump it copies files from the root dir that start with Crash* but does not copy directorie...
by Matice
08 Oct 2008 01:26
Forum: DOS Batch Forum
Topic: xcopy "path"*.*
Replies: 2
Views: 7330

xcopy "path"*.*

greetings back here since a long time. im stuck on something simple and stupid. i need to copy files from source to destination in the following manner: xcopy /s /e /c /f "C:\Program Files\Debugging Tools for Windows (x86)\"Crash_Mode*.* c:\mydir\dump but it just fails.. any tips on how to...
by Matice
11 Dec 2007 19:53
Forum: DOS Batch Forum
Topic: How to add a program into the exeption list of a Firewall ?
Replies: 1
Views: 6196

hello you have misscomprehended how this works. netsh first is a command tool to configure and administer network protocol configurations. netsh nor the windows firewall control network access by prohibiting applications. it works by blocking network access. you need to know your network protocol an...
by Matice
17 Nov 2006 02:50
Forum: DOS Batch Forum
Topic: job to check if file exists
Replies: 1
Views: 10561

Re: job to check if file exists

greets here is something you could work with =8<= @echo off cls REM create date variable strings REM you need to adjust this in accordance to your own locale for /F "tokens=1-4 delims=. " %%i IN ('date /t') DO ( set dd=%%i set mm=%%j set yy=%%k) REM set /a dd=%dd% - 1 rem set da=%%i REM echo %dd% %m...
by Matice
16 Nov 2006 04:24
Forum: DOS Batch Forum
Topic: forking commands
Replies: 6
Views: 21733

Re: passing variables when forking doesnt work for some reas

problem solved, i had an excess space mark and used set /a FILEID+=1 instead of set /a fileid=%fileid%+1 thanks a lot for this! this is how far i got, as you can see, im passing variables to start in a loop, but for some reason, the variables are not being received, any ideas`? ive been banging my h...
by Matice
16 Nov 2006 04:22
Forum: DOS Batch Forum
Topic: incrementing within a loop
Replies: 7
Views: 18415

set /a FILEID+=1 never heard of such a syntax but that did the trick beautifully, now i can continue without probs! thanks a bunch!! Matice, Try: @echo off cls set FILEID=1 for /f "tokens=*" %%f in (myhosts.txt) do ( set /a FILEID+=1 call echo forking tasks for %%f with ID %%FI...
by Matice
15 Nov 2006 05:34
Forum: DOS Batch Forum
Topic: incrementing within a loop
Replies: 7
Views: 18415

damn, i was wrong,
I couldnt get it to work in a for loop :( any ideas?

any ideas whats wrong with the one below?

@echo off
cls

set FILEID=1
for /f "tokens=*" %%f in (myhosts.txt) do (
set /a FILEID=%FILEID% + 1
echo forking tasks for %%f with ID %FILEID%
)
by Matice
15 Nov 2006 04:09
Forum: DOS Batch Forum
Topic: forking commands
Replies: 6
Views: 21733

passing variables when forking doesnt work for some reason..

this is how far i got, as you can see, im passing variables to start in a loop, but for some reason, the variables are not being received, any ideas`? ive been banging my head with this now for a while, i hope someone can enlighten me. regards Matice forktest.cmd ==== @echo off cls echo scanning hos...
by Matice
14 Nov 2006 10:30
Forum: DOS Batch Forum
Topic: incrementing within a loop
Replies: 7
Views: 18415

yeah just noticed the same when i opened my eyes a bit!
anyhow thansk for the help!

Matice wrote:funny, i couldnt get it to work :/

dizze wrote:Yes,

but the command to execute would be:

set /a %FILEID%=%FILEID% + 1
by Matice
14 Nov 2006 10:11
Forum: DOS Batch Forum
Topic: incrementing within a loop
Replies: 7
Views: 18415

funny, i couldnt get it to work :/

dizze wrote:Yes,

but the command to execute would be:

set /a %FILEID%=%FILEID% + 1
by Matice
14 Nov 2006 07:12
Forum: DOS Batch Forum
Topic: incrementing within a loop
Replies: 7
Views: 18415

incrementing within a loop

can something like to following be done?

set FILEID=0
for /f "tokens=*" %%f in (myhosts.txt) do (
%FILEID%=%FILEID% +1

echo do something to host >> %FILEID%.txt
)
by Matice
14 Nov 2006 06:42
Forum: DOS Batch Forum
Topic: forking commands
Replies: 6
Views: 21733

well one thing that could be done is to create files for output that are sequential and unique to every host and at the end join them together hence; just need to figure how to create an encrimented variable for unique file name.. I would use seperate files for the report on each server, then type t...
by Matice
14 Nov 2006 06:04
Forum: DOS Batch Forum
Topic: forking commands
Replies: 6
Views: 21733

yep start works fine, now im facing another issue, as each command retrieves data and echos it to a common file, the data gets entered in random order because the data retrieved returns on different time intervals.. now in need to gifure out a "write lock" mechanism so that the data is entered to th...
by Matice
14 Nov 2006 03:05
Forum: DOS Batch Forum
Topic: forking commands
Replies: 6
Views: 21733

forking commands

hello, is there a quick trick that can fork a tasks to run concurrently hence speeding up the process instead of running in a single long loop. for example, i have a command i want to execute on several hundred boxes, if i would simply use for /f "tokens=*" %%r in (myhosts.txt) do ( echo test comman...