playsafe Posted May 18, 2006 Share Posted May 18, 2006 (edited) 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.batDo somebody know what is the problem. Regards,Yasir Irfat. Edited May 18, 2006 by playsafe Link to comment Share on other sites More sharing options...
cluberti Posted May 18, 2006 Share Posted May 18, 2006 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 More sharing options...
playsafe Posted May 19, 2006 Author Share Posted May 19, 2006 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. ThanksRegards,YAsir Irfat Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now