[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
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
Medium Priority
?
174 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Hi All Just a quick one for everybody. I was recently looking into setting the default User Account Picture for all my vista clients within the network but on closer inspection the group policy setting only allows you to set the default pictur…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

649 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