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
166 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
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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
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…
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 this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now