Re: Run a VBscript as a Service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Michael Harris (MVP)" <mikhar.at.mvps.dot.org> wrote in message
news:O39p$PhVHHA.1036@xxxxxxxxxxxxxxxxxxxxxxx
tcrowley1999@xxxxxxxxx wrote:
Hi all,
Apologies if I'm posting this in the wrong forum.
I have a VBscript that monitors a folder for new files
And if it detects new files it will move them to another folder.
My question is
Can I convert the VBscript to a .exe so as it can run as a service.
Or is there another way to accomplish my goal.


Never had a need to do this myself, but apparently many others have...

srvany vbscript group:*.scripting - Google Groups
<http://groups.google.com/groups?q=srvany%20vbscript%20group:*.scripting&num=100&scoring=d>

--
Michael Harris
Microsoft.MVP.Scripting


You might also be able to use WMI to monitor the folder. See this link:

http://www.microsoft.com/technet/scriptcenter/guide/sas_wmi_kzcp.mspx

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--


.



Relevant Pages

  • Re: browsing a filesystem within Outlooks navigation pane
    ... you can use vbscript to access and manipulate outlook ... MAPIFolder. ... I also stored descriptive information about the filesystem ... that the folder represents in the .Description member of the MAPIFolder ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: Thank you Richard, Paul and urkec
    ... only built-in way to communicate with the person running the script is ... It is documented in the VBScript help file Script56.chm. ... You can use the ADO and ADOX objects to analyze and manipulate an existing ... dir cmd of each folder to a text file and have my script use that file ...
    (microsoft.public.scripting.vbscript)
  • Testing If Active Directory Replication Has Occurred
    ... I need some help with vbscript and Active Directory ... know how to test if replication has been done up to ... I'm writing a script to create our users from a csv file where each ... the "create folder" permission in the root my documents share on FS1) ...
    (microsoft.public.scripting.vbscript)
  • Re: copying files and folders- Design doubt
    ... I would just use CopyFilefor the list of files instead of using VBScript. ... You could easily create the folder tree if there is more than one folder needed. ... I have an application, say, GMS. ... The copying process is written in VBScript. ...
    (microsoft.public.vc.language)
  • Run a VBscript as a Service
    ... Apologies if I'm posting this in the wrong forum. ... I have a VBscript that monitors a folder for new files ... And if it detects new files it will move them to another folder. ... Can I convert the VBscript to a .exe so as it can run as a service. ...
    (microsoft.public.windows.server.scripting)