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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
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…

807 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