Home / Microsoft / Microsoft DOS / Batch Programs Thread.
0 Members and 3 Guests are viewing this topic. « previous next »
Pages: 1 ... 21 22 [23] 24 25 ... 37 - (Bottom) Print
Author Topic: Batch Programs Thread.  (Read 99441 times)
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.
IP logged
wernerbreedt
Rookie



Posts: 18


« Reply #331 on: March 01, 2009, 07:03:26 AM »

emails is also traceable
IP logged
BC_Programmer
Mastermind


Thanked: 697
Posts: 15,880

Computer: Specs
Experience: Beginner
OS: Windows 7


Pinkie Pie is best pony

BC-Programming.com 1 1
« Reply #332 on: March 01, 2009, 09:10:03 AM »

emails is also traceable

So you don't want it to be tracable? How oddly contradictory to your stated intentions...
IP logged

My Blog

BASeBlock 2.3.0 (NOW WITH MACGUFFINS!)
Dias de verano
Guest
« Reply #333 on: March 01, 2009, 09:16:04 AM »

Quote from: BCP
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...

IP logged
wernerbreedt
Rookie



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.
IP logged
macdad-
Topic Starter
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #335 on: March 01, 2009, 03:33:45 PM »

dont get any ideas on asking us on how to make one  >:(
IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
BatchFileCommand
Hopeful



Thanked: 1
Posts: 339




« Reply #336 on: March 01, 2009, 06:58:36 PM »

Quote
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.
IP logged

οτη άβγαλτος μεταφ βαθμολογία
Carbon Dudeoxide
Global Moderator
Mastermind


Thanked: 146
Posts: 16,087

Certifications: List
Computer: Specs
Experience: Expert
OS: Mac OS


Carbon - The building block of life on Earth.

My Youtube Profile 1 1
« Reply #337 on: March 01, 2009, 11:57:38 PM »

In the time spent here, I'm sure you would have already finished doing what you wanted to do manually.
IP logged

devcom
Apprentice



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  ::)

Code: [Select]
@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

Download: Choice.exe
macdad-
Topic Starter
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #339 on: March 29, 2009, 03:34:08 PM »

Nice one dev
IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
Helpmeh
Egghead



Thanked: 117
Posts: 3,608

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #340 on: April 01, 2009, 05:30:43 PM »

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.

All werner needs is a punctuation lesson.

Quote
Thats the whole point. Why would i want to email them if I was writing a virus?

That works?
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
Woogi
Rookie



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?

Quote
@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

IP logged
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.


IP logged
devcom
Apprentice



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 ;)
IP logged

Download: Choice.exe
patio
Moderator
Genius



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...
IP logged

   
"
All generalizations are false, including this one.  "
Pages: 1 ... 21 22 [23] 24 25 ... 37 - (Top) Print 
Home / Microsoft / Microsoft DOS / Batch Programs Thread. « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.101 seconds with 20 queries.