Computer Hope

Microsoft => Microsoft DOS => Topic started by: lufkincy on September 05, 2009, 04:45:00 PM

Title: Question about using batchfiles in Windows XP
Post by: lufkincy 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
Title: Re: Question about using batchfiles in Windows XP
Post by: Geek-9pm 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
Title: Re: Question about using batchfiles in Windows XP
Post by: billrich 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.
Title: Re: Question about using batchfiles in Windows XP
Post by: Dusty on September 05, 2009, 05:11:25 PM
NT Command Line commands are listed here (http://ss64.com/nt/)..  Click on any command to view the syntax.



Title: Re: Question about using batchfiles in Windows XP
Post by: lufkincy on September 05, 2009, 07:18:42 PM
Thanks. I will check that out now.

cy
Title: Re: Question about using batchfiles in Windows XP
Post by: billrich on September 05, 2009, 08:53:08 PM
lufkincy,

Where is an example of your Dos code ( your batch file )?  Please post.
Title: Re: Question about using batchfiles in Windows XP
Post by: lufkincy 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
Title: Re: Question about using batchfiles in Windows XP
Post by: Helpmeh on September 06, 2009, 11:02:27 AM
I don't think you can scan photos with batch.
Title: Re: Question about using batchfiles in Windows XP
Post by: lufkincy 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
Title: Re: Question about using batchfiles in Windows XP
Post by: Helpmeh on September 06, 2009, 12:02:20 PM
Well, using SET /P, it will pause untill you enter something and press enter.
Title: Re: Question about using batchfiles in Windows XP
Post by: smeezekitty 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
Title: Re: Question about using batchfiles in Windows XP
Post by: BC_Programmer 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.
Title: Re: Question about using batchfiles in Windows XP
Post by: smeezekitty 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
Title: Re: Question about using batchfiles in Windows XP
Post by: BC_Programmer 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.
Title: Re: Question about using batchfiles in Windows XP
Post by: smeezekitty 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
Title: Re: Question about using batchfiles in Windows XP
Post by: BatchFileBasics 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/
Title: Re: Question about using batchfiles in Windows XP
Post by: Helpmeh 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.
Title: Re: Question about using batchfiles in Windows XP
Post by: BatchFileBasics 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
Title: Re: Question about using batchfiles in Windows XP
Post by: Geek-9pm 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.