Home / Microsoft / Microsoft DOS / Question about using batchfiles in Windows XP
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 2 [All] - (Bottom) Print
Author Topic: Question about using batchfiles in Windows XP  (Read 2621 times)
lufkincy
Topic Starter
Rookie



Posts: 10


« on: September 05, 2009, 04:45:00 PM »

Some years ago I had to switch to Windows from DOS. While I was pretty competent in DOS, I've never gained a lot of competence in Windows.

In DOS I made extensive use of batchfiles. Is there a way to use batchfiles in XP? If so, where can I find the syntax and how to activate it from within XP.

Thanks...

Cy Stapleton
Lufkin, TX
IP logged
Geek-9pm
Sage



Thanked: 327
Posts: 8,047

Computer: Specs
Experience: Familiar
OS: Windows XP


Geek After Dark

« Reply #1 on: September 05, 2009, 04:59:43 PM »

Yes, and many do. There are st rill some things that are just SO easy to do in a batch file that there is little point in trying to change over to a Windows script.
Look here:
http://www.computerhope.com/batch.htm
IP logged
billrich
Guest
« Reply #2 on: September 05, 2009, 05:00:03 PM »

The command prompt screen and area of XP will run all of you old dos programs.

Post the code of your best Dos program here and I will see how well it runs on my XP Pro machine.
« Last Edit: September 05, 2009, 05:50:33 PM by billrich » IP logged
Dusty
Egghead



Thanked: 71
Posts: 3,378

Experience: Beginner
OS: Windows XP


I could if she would, but she won't so I don't.

« Reply #3 on: September 05, 2009, 05:11:25 PM »

NT Command Line commands are listed here..  Click on any command to view the syntax.



IP logged

One good deed is worth more than a year of good intentions.
lufkincy
Topic Starter
Rookie



Posts: 10


« Reply #4 on: September 05, 2009, 07:18:42 PM »

Thanks. I will check that out now.

cy
IP logged
billrich
Guest
« Reply #5 on: September 05, 2009, 08:53:08 PM »

lufkincy,

Where is an example of your Dos code ( your batch file )?  Please post.
IP logged
lufkincy
Topic Starter
Rookie



Posts: 10


« Reply #6 on: September 06, 2009, 10:51:33 AM »

Hi Bill: Thanks for the reply. Unfortunately I do not have any of my old DOS files left. For a while I kept both DOS and Windows on my system, but when I finally stopped using DOS and when I bought a new system, I copied all of my Windows data off the old system, F-disked it and gave it to a local Christian school.

I have shortcut links on my desktop to the applications I use often, but what I want the batchfiles for is to cut down on my keystrokes. As an example, If I am scanning a large number of photos to go on my website, I can click on the shortcut on my desktop to go to my website, but I want a batchfile that will open my scanner, scan the photo, let me name the photo, then save the photo in a designated folder in FrontPage. Then loop and do the same thing for the next photo. I would like a shortcut to that batchfile on my desktop.

When I am scanning I will often scan 50 to 100 photos and other items at a time.

I use XP

Thanks again...

cy
IP logged
Helpmeh
Egghead



Thanked: 116
Posts: 3,583

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #7 on: September 06, 2009, 11:02:27 AM »

I don't think you can scan photos with batch.
IP logged

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



Posts: 10


« Reply #8 on: September 06, 2009, 11:23:41 AM »

I don't think you can scan photos with batch.
Thanks for the response. I have no idea whether or not this is possible. It has been many years since I wrote batchfiles and I have forgotten most of what I had learned, but I recall having written files that paused, let me enter something, then continue. I had a free utility batchfile creator that would create some really complicated batchfiles.

Actually, this is just one of the many things on my wishlist. When I found this forum I decided to see if anyone could help me on this wishlist item.

Thanks again

cy
IP logged
Helpmeh
Egghead



Thanked: 116
Posts: 3,583

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #9 on: September 06, 2009, 12:02:20 PM »

Well, using SET /P, it will pause untill you enter something and press enter.
IP logged

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



Thanked: 44
Posts: 0


« Reply #10 on: September 06, 2009, 12:49:15 PM »

gave it to a local Christian school.
giving people stuff is always bad unless it is  a very good friend
but anyway
of cource you can run batch files in xp
IP logged

Acer extensa 463oz
2 gb ram
160gb hdd
2ghz processor
and desk fan sitting next to it for cooling :)
BC_Programmer
Mastermind


Thanked: 682
Posts: 15,624

Computer: Specs
Experience: Beginner
OS: Windows 7


Pinkie Pie is best pony

BC-Programming.com 1 1
« Reply #11 on: September 06, 2009, 10:59:28 PM »

giving people stuff is always bad unless it is  a very good friend


*censored*? God forbid we ever do anything to help the less fortunate or our communities. No, it's far more productive to hoard our goods and do nothing selfless for anybody- rather just coop ourselves up in an attic with our CGA video cards churning out TDWTF quality code in Turbo C that is essentially useless in the context of the modern day.

Now then, back to the topic...


I don't think you can scan photos with batch.

why not?

do a tad a research :P

Windows XP and Vista include a program called WIAACMGR, which might be usable via the commandline. I cannot test it since I don't have a scanner, though.
IP logged

smeezekitty
Newcomer



Thanked: 44
Posts: 0


« Reply #12 on: September 06, 2009, 11:06:01 PM »


*censored*? God forbid we ever do anything to help the less fortunate or our communities. No, it's far more productive to hoard our goods and do nothing selfless for anybody- rather just coop ourselves up in an attic with our CGA video cards churning out TDWTF quality code in Turbo C that is essentially useless in the context of the modern day.

Now then, back to the topic...


why not?

do a tad a research :P

Windows XP and Vista include a program called WIAACMGR, which might be usable via the commandline. I cannot test it since I don't have a scanner, though.
your sure in a bad mood
IP logged

Acer extensa 463oz
2 gb ram
160gb hdd
2ghz processor
and desk fan sitting next to it for cooling :)
BC_Programmer
Mastermind


Thanked: 682
Posts: 15,624

Computer: Specs
Experience: Beginner
OS: Windows 7


Pinkie Pie is best pony

BC-Programming.com 1 1
« Reply #13 on: September 06, 2009, 11:11:17 PM »

your sure in a bad mood

and your selfish, which is ironic given your recent post asking for a word that is essentially a synonym for it.
IP logged

smeezekitty
Newcomer



Thanked: 44
Posts: 0


« Reply #14 on: September 07, 2009, 01:29:18 AM »

and your selfish, which is ironic given your recent post asking for a word that is essentially a synonym for it.
hey bc_prog can you decode this:
30 31 31 31 30 31 31 31 30 31 31 30 31 30 30 30 30 31 31 30 30 31 30 31 30 31 31 30 31 31 31 30 30 30 31 30 30 30 30 30 30 31 31 31 30 31 31 31 30 31 31 30 31 30 30 31 30 31 31 30 31 31 30 30 30 31 31 30 31 31 30 30 30 30 31 30 30 30 30 30 30 31 31 31 31 30 30 31 30 31 31 30 31 31 31 31 30 31 31 31 30 31 30 31 30 30 31 30 30 30 30 30 30 31 31 30 31 31 30 30 30 31 31 30 30 31 30 31 30 31 31 30 30 30 30 31 30 31 31 31 30 30 31 30 30 31 31 30 31 31 31 30 30 30 31 30 30 30 30 30 30 31 31 30 31 31 31 30 30 31 31 30 30 31 30 31 30 31 31 31 30 31 31 30 30 31 31 30 30 31 30 31 30 31 31 31 30 30 31 30 30 30 31 30 30 30 30 30 30 31 31 30 30 31 31 31 30 31 31 30 31 30 30 31 30 31 31 31 30 31 31 30 30 31 31 30 30 31 30 31 30 30 31 30 30 30 30 30 30 31 31 31 31 30 30 31 30 31 31 30 31 31 31 31 30 31 31 31 30 31 30 31 30 31 31 31 30 30 31 30 30 30 31 30 30 30 30 30 30 31 31 31 30 30 31 31 30 31 31 31 30 31 30 30 30 31 31 31 30 31 30 31 30 31 31 30 30 31 31 30 30 31 31 30 30 31 31 30 30 30 31 30 30 30 30 30 30 31 31 30 30 30 30 31 30 31 31 31 30 31 31 31 30 31 31 30 30 30 30 31 30 31 31 31 31 30 30 31 30 30 30 30 31 31 30 31 30 30 30 30 31 30 31 30 30 31 31 30 30 31 30 31 30 31 31 31 30 30 31 31 30 31 31 31 30 30 30 30 30 31 31 30 30 31 30 31 30 31 31 30 30 30 31 31 30 31 31 30 31 30 30 31 30 31 31 30 30 30 30 31 30 31 31 30 31 31 30 30 30 31 31 30 31 31 30 30 30 31 31 31 31 30 30 31 30 30 31 30 30 30 30 30 30 31 31 31 30 31 30 30 30 31 31 30 31 31 31 31 30 30 31 30 30 30 30 30 30 31 31 31 30 31 30 30 30 31 31 30 31 30 30 30 30 31 31 30 30 31 30 31 30 30 31 30 30 30 30 30 30 31 31 30 30 30 31 31 30 31 31 30 31 30 30 30 30 31 31 31 30 31 30 31 30 31 31 31 30 30 31 30 30 31 31 30 30 30 31 31 30 31 31 30 31 30 30 30
IP logged

Acer extensa 463oz
2 gb ram
160gb hdd
2ghz processor
and desk fan sitting next to it for cooling :)
BatchFileBasics
Hopeful



Thanked: 18
Posts: 390


BatchFileBasics
« Reply #15 on: September 07, 2009, 10:08:05 AM »

Quote
when will you learn never give your stuff away
especially to the church

text - binary - hex

http://home2.paulschou.net/tools/xlate/
IP logged

When the power of love overcomes the love of power the world will know peace - Jimi Hendrix.
Helpmeh
Egghead



Thanked: 116
Posts: 3,583

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #16 on: September 07, 2009, 10:18:35 AM »

text - binary - hex

http://home2.paulschou.net/tools/xlate/
I always use that site for converting binary, hex, decimal etc.
IP logged

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



Thanked: 18
Posts: 390


BatchFileBasics
« Reply #17 on: September 07, 2009, 10:23:09 AM »

yea, it came in handy when my friend needed me to "decode" binary he got in a message

anyways.

i wonder where lufkincy is
IP logged

When the power of love overcomes the love of power the world will know peace - Jimi Hendrix.
Geek-9pm
Sage



Thanked: 327
Posts: 8,047

Computer: Specs
Experience: Familiar
OS: Windows XP


Geek After Dark

« Reply #18 on: September 07, 2009, 08:08:45 PM »

Quote
hey bc_prog can you decode this:
Hey kitty, can you give a one line command that will decode what you just sent to BC ?
Well, maybe  three or four lines.
IP logged
Pages: 1 2 [All] - (Top) Print 
Home / Microsoft / Microsoft DOS / Question about using batchfiles in Windows XP « 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.111 seconds with 20 queries.