MSFN Forum: Not able to run files at StartUp - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Not able to run files at StartUp Rate Topic: -----

#1 User is offline   playsafe 

  • Well we've made it this far
  • PipPip
  • Group: Members
  • Posts: 119
  • Joined: 05-May 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 May 2006 - 04:22 AM

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.

Attached File(s)


This post has been edited by playsafe: 18 May 2006 - 04:27 AM



#2 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 11,001
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 May 2006 - 02:17 PM

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.

#3 User is offline   playsafe 

  • Well we've made it this far
  • PipPip
  • Group: Members
  • Posts: 119
  • Joined: 05-May 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 May 2006 - 10:47 PM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy