Jump to content

Not able to run files at StartUp


Recommended Posts

Hello all,

I have win2k pro. In my systems Local Group Policy I have added a file scr.bat in StartUp. But it never runs. Then I put that file in startup where show file Button links and agian addded to new location. but it is not working. it works fine when I run it in command prompt like > scr.bat

Do somebody know what is the problem.

Regards,

Yasir Irfat.

post-95512-1147947922_thumb.png

Edited by playsafe
Link to comment
Share on other sites


What does the scr.bat file do, and does it need interactive access to the desktop? Remember that things run as startup or shutdown scripts run under the local system account, non-interactively. It would help to know what this file does and where it is located on your machine.

Link to comment
Share on other sites

Well, It simply deletes a file named "abc.txt" on My D drive. It is for the test purposes. Does not require any parameters.

scr.bat contains only one Line and is located in D:\mamoon\

<code> Wscript d:\mamoon\vfptest.vbs</code>

And, vfptest.vbs deletes a file named abc.txt located in same folder

<code> strFileName = "D:\Mamoon\abc.txt"

Set objFSO = CreateObject("Scripting.FileSystemObject")

objFSO.DeleteFile(strFileName) </code>

It works when from command I write "scr.bat".

What do you mean by Local System Account, is it "Privilleges of USER GROUP of system". By the way EveryOne group has Full Rights to D drive.

Sorry if format is not clean, bcz my system is not putting the Quote tags right. Thanks

Regards,

YAsir Irfat

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...