Search found 14 matches
- 15 Oct 2008 00:14
- Forum: DOS Batch Forum
- Topic: xcopy "path"*.*
- Replies: 2
- Views: 7964
- 08 Oct 2008 01:26
- Forum: DOS Batch Forum
- Topic: xcopy "path"*.*
- Replies: 2
- Views: 7964
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...
- 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: 6556
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...
- 17 Nov 2006 02:50
- Forum: DOS Batch Forum
- Topic: job to check if file exists
- Replies: 1
- Views: 11260
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...
- 16 Nov 2006 04:24
- Forum: DOS Batch Forum
- Topic: forking commands
- Replies: 6
- Views: 23321
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...
- 16 Nov 2006 04:22
- Forum: DOS Batch Forum
- Topic: incrementing within a loop
- Replies: 7
- Views: 20140
- 15 Nov 2006 05:34
- Forum: DOS Batch Forum
- Topic: incrementing within a loop
- Replies: 7
- Views: 20140
- 15 Nov 2006 04:09
- Forum: DOS Batch Forum
- Topic: forking commands
- Replies: 6
- Views: 23321
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...
- 14 Nov 2006 10:30
- Forum: DOS Batch Forum
- Topic: incrementing within a loop
- Replies: 7
- Views: 20140
- 14 Nov 2006 10:11
- Forum: DOS Batch Forum
- Topic: incrementing within a loop
- Replies: 7
- Views: 20140
- 14 Nov 2006 07:12
- Forum: DOS Batch Forum
- Topic: incrementing within a loop
- Replies: 7
- Views: 20140
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
)
set FILEID=0
for /f "tokens=*" %%f in (myhosts.txt) do (
%FILEID%=%FILEID% +1
echo do something to host >> %FILEID%.txt
)
- 14 Nov 2006 06:42
- Forum: DOS Batch Forum
- Topic: forking commands
- Replies: 6
- Views: 23321
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...
- 14 Nov 2006 06:04
- Forum: DOS Batch Forum
- Topic: forking commands
- Replies: 6
- Views: 23321
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...
- 14 Nov 2006 03:05
- Forum: DOS Batch Forum
- Topic: forking commands
- Replies: 6
- Views: 23321
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...