Solved

a .bat file that executes a program on my XP does not work when copied to another computer using Vista

Posted on 2008-10-03
2
170 Views
Last Modified: 2010-04-16
SET AUSER=c:\ADVANT\DATA\
SET AFILES=c:\ADVANT\SYS\
Here is the batch file and program:

SET APROGS=c:\ADVANT\PROGS\
DEL c:\!\*.htm
c:
CD \ADVANT\PROGS
DEL STMTS?.KST
ADV < SCRPTGEN.KST
TYPE STMTS1.KST | T TRIMR > STMTS2.KST
ADV < STMTS2.KST
0
Comment
Question by:BDEVLINsr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
DMTechGrooup earned 500 total points
ID: 22638086
The batch file needs permissions as admin to run so if UAC is on you get access denied.. if you run it as a admin then by default it runs from the c:\windows\system32.

I ran into this problem when was trying to copy stuff using a batch file.  You would probably be better off running it as a vbs or you need to run as an admin and then add more solid file locations

so instead of CD \ADVANT\PROGS you put del c:\ADVANT\PROGS\STMTS?.KST

0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question