0

I have a script that I can run from its directory giving this command:

c:\Users\UserName\Desktop\Folder\V3>C:\Windows\Syste
m32\WScript.exe "c:\Users\UserName\Desktop\Folder\V3\filename.vbs"

but if I try and do it from this location c:\

c:\>C:\Windows\Syste
m32\WScript.exe "c:\Users\UserName\Desktop\Folder\V3\filename.vbs"

I get permission denied, and I do not understand fully.

What permission do I have to have for this to work?

Note:
I am trying to schedule this task in task Scheduler Windows7 which has led me to this question as this is what the task scheduler does.
I do not have local admin rights.
found this useful re trying to solve this.
I am just unsure of my permissions.

Community
  • 1
  • 1
HattrickNZ
  • 4,373
  • 15
  • 54
  • 98
  • useful links relative to this [here](http://stackoverflow.com/questions/8678441/difference-between-wscript-and-cscript) and [here](http://stackoverflow.com/questions/9625127/task-scheduler-windows-7) and [here](http://stackoverflow.com/questions/8925908/how-to-start-a-vbs-script-in-windows-7-task-scheduler-with-messagebox) – HattrickNZ Apr 28 '14 at 21:52

1 Answers1

0

worked this out see here

Basically itt turns out I have to put the location of every script.vbs in the Start in: (optional) parmaeter of the Action tab for each schedule.

Community
  • 1
  • 1
HattrickNZ
  • 4,373
  • 15
  • 54
  • 98