Dias de verano Guest
|
 |
« Reply #330 on: March 01, 2009, 06:44:23 AM » |
|
if i wanted to do that i would rather just go the pc and manually copy the batch there.
Yes, but email is quicker.
|
|
|
|
|
wernerbreedt
Posts: 18
|
 |
« Reply #331 on: March 01, 2009, 07:03:26 AM » |
|
emails is also traceable
|
|
|
|
|
|
|
Dias de verano Guest
|
 |
« Reply #333 on: March 01, 2009, 09:16:04 AM » |
|
How oddly contradictory to your stated intentions... He's from South Africa, where, he says, because of the "way politics are", people get jobs they can't do...
|
|
|
|
|
wernerbreedt
Posts: 18
|
 |
« Reply #334 on: March 01, 2009, 10:16:56 AM » |
|
emails is also traceable
Thats the whole point why would i want to email them if i was writing a virus.
|
|
|
|
|
macdad- Topic Starter
Thanked: 39 Posts: 2,520
|
 |
« Reply #335 on: March 01, 2009, 03:33:45 PM » |
|
dont get any ideas on asking us on how to make one 
|
If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family. 
|
|
|
BatchFileCommand
Thanked: 1 Posts: 339

|
 |
« Reply #336 on: March 01, 2009, 06:58:36 PM » |
|
Thats the whole point why would i want to email them if i was writing a virus. That's like saying: Why would I want to kill the guy I want to kill if I was going to kill him?You might want to take some grammar lessons.
|
οτη άβγαλτος μεταφ βαθμολογία
|
|
|
|
|
devcom
Thanked: 37 Posts: 521
|
 |
« Reply #338 on: March 29, 2009, 03:32:24 PM » |
|
i have nothing else to do so i created array creating script  @echo off if '%1' equ '/?' goto HELP
if not '%1' equ '/2' ( set varName=%1 set varTo=%2 goto 1da ) else ( set varName=%2 set varTo1=%3 set varTo2=%4 goto 2da )
:1da for /L %%C in (0,1,%varTo%) do ( set %varName%[%%C]=test ) goto END
:2da for /L %%B in (0,1,%varTo1%) do ( for /L %%C in (0,1,%varTo2%) do ( set %varName%[%%B][%%C]=test ) ) goto END
:HELP echo.ARRAY [/2] ArrayName ArrayLength [ArrayHeight] echo. echo.EXAMPLE: echo. echo.array position 2 echo.Will create this variables: echo. echo.position[0] echo.position[1] echo.position[2] echo. echo. echo.array /2 position 2 1 echo.Will create this variables: echo. echo.position[0][0] position[0][1] echo.position[1][0] position[1][1] echo.position[2][0] position[2][1] echo. pause goto END
:END
|
|
|
|
« Last Edit: March 30, 2009, 07:04:44 AM by devcom »
|
IP logged
|
|
|
|
macdad- Topic Starter
Thanked: 39 Posts: 2,520
|
 |
« Reply #339 on: March 29, 2009, 03:34:08 PM » |
|
Nice one dev
|
If you dont know DOS, you dont know Windows... Thats why Bill Gates created the Windows NT Family. 
|
|
|
|
|
Woogi
Posts: 11
|
 |
« Reply #341 on: April 14, 2009, 01:06:39 PM » |
|
So I am looking for some help. I need to do an IF THEN in a batch file. I currently have the below script removing some printers and installing others. But I would like to add an IF THEN so that if the new printer is installed, the bat file ends. Any ideas? @echo off REM Date: 01/29/2009 REM Created By: John Wilganowski REM Comments: REM REM The Example removes REM the Calpine machine that was REM connected to hou-02svr and REM connect the calpine on hou-17svr. REM It uses the PRNMNGR.vbs that comes with windows REM It will use the local copy of PRNMGR.vbs
REM EXAMPLE BELOW:
REM Cscript %windir%\system32\Prnmngr.vbs -d -p "\\hou-02svr\HOU-CalPine-PCL" REM Cscript %windir%\system32\prnmngr.vbs -ac -p "\\hou-17svr\HOU-Calpine-PS" REM exit
Cscript %windir%\system32\Prnmngr.vbs -d -p "\\hou-02svr\HOU-WhiteHouse-PCL" Cscript %windir%\system32\Prnmngr.vbs -d -p "\\hou-02svr\HOU-WhiteHouse-PS" Cscript %windir%\system32\prnmngr.vbs -ac -p "\\hou-02svr\HOU-Parthenon" exit
|
|
|
|
|
Dias de verano Guest
|
 |
« Reply #342 on: April 14, 2009, 01:10:46 PM » |
|
So I am looking for some help. Better if you start your own thread. This one is for stupid banter, you won't get the right help here.
|
|
|
|
|
devcom
Thanked: 37 Posts: 521
|
 |
« Reply #343 on: April 14, 2009, 02:55:40 PM » |
|
Better if you start your own thread. This one is for stupid banter, you won't get the right help here.
I see you hate us 
|
|
|
|
patio Moderator
Thanked: 1069 Posts: 11,354
Experience: Beginner OS: Windows 7

Maud' Dib
|
 |
« Reply #344 on: April 14, 2009, 04:56:33 PM » |
|
He hates no one...just gets impatient when people can't read 22 pages of info and help themselves...
|
" All generalizations are false, including this one. "
|
|
|