I have a CSV that my computer downloads every 15 minutes automatically. I then want to automatically upload this CSV to my Google Docs account using their API.
I figure I can write a simple VBScript that pulls the CSV file from it's location and POSTs to the Google Docs API but my question is how do I set the script to run every 15 minutes in the Windows 7 environment.
Thanks for your help!
Simple: the Windows task scheduler. Link
EDIT: Eh, probably a poor link. This is more specific. You can also do it from the command line with the at command.
The problem with the script that it has poor monitor service. If you will write a windows service it can be resumed and logged automatically.
Related
I have tried to change the IP of a server via script and schedule it automatically but it was not giving proper results.So i relied on a tacky method of doing it using "Automator"app in Mac.
I created a workflow using this Automator ,Now i need to schedule this to work every 10 minutes or so.How can i do that in Mac with any scripts or anything. Suggestions will be o great help.
Below is the workflow created.
My company currently applies PostgreSQL 10 and windows server 2008 OS.
I need to run a C wrote calculation program in .exe file each month.
However, it is not perfect to double click and run it every month. Furthermore, I would like to be able to run it at anytime where most of the resources are free (like mid-night). So I would like to ask if any of the following would be possible?
Setup a job in pgAgent to auto-run .exe file each month?
And is there a way to get returned info from the running results?
Thanks for anyone who gives any clue.
Windows Task Scheduler would be better suited for this task. You can select your .exe, set a run date/time and frequency. If you provide a user/password, it can run the task even if you are not logged in. See here for a tutorial.
I am very new to scripting and i am not sure which script will be helping me out.
I need to download a file from a website and also it should happen as recurring download every morning.
could someone kindly suggest me a script?
Thanks in advance
You should use either curl or wget, one or both of them are part of many Linux distributions, there are also Windows and OSX versions available.
To make the script run on a regular basis you will need to use the cron scheduler on Linux/UNIX/OSX, WIndows has its own Task Scheduler
When I run the PowerSheel script manually - through a .bat file that executes it with the PowerShell interpreter - it correctly executes an SQL query and creates an Excel file and e-mails it.
If I automate it - run the .bat file that runs the PowerShell file with the interpreter through the Windows job scheduler every night - then the e-mail is sent without the file.
It is difficulty to copy the code here because I made a nice framework many functions deep with lambda-functions and all, but generally:
$ExcelWorkBook.SaveAs($Filename)
$ExcelWorkBook.Close()
$ExcelApp.Quit()
(...)
Sleep -Seconds 500
(...)
$MailMessage.Attachments.Add($Filename)
$SMTP.Send($MailMessage)
I have heard that Excel does not actually support GUI-less automation (windows task scheduler) but that actually worked for me through a different framework.
What can I do to make it work, if cannot how can I generate Excel files from PowerShell in a different way, or how can I just easily generate and e-mail reports in PowerShell?
if you are running windows 2008 or above, then the job is probably executed in session0 (read about session0 isolation at microsoft).
You have to create Desktop-Folders for session0, read more here:
http://social.msdn.microsoft.com/Forums/en/innovateonoffice/thread/b81a3c4e-62db-488b-af06-44421818ef91
Windows 2008 Server x64
Please make this folder
C:\Windows\SysWOW64\config\systemprofile\Desktop
Windows 2008 Server x86
Please make this folder
C:\Windows\System32\config\systemprofile\Desktop
Then restart machine and try again.
I got it working with GUI-less Excel automation via task scheduler and powershell, done by creating those folders.
#Dan yes I do. CSV is a really poor report format for corporate reporting, no colors, no formatting, nothing. A manager would be insulted to find that in his inbox.
#VonPryz - but manually it works! So you say debug the scheduling?
Before I start, another post for something similar to this request for help is located at Running a process at the Windows 7 Welcome Screen, but the responses were not quite what I believe I am looking for, and the post is over a year old so I thought it best to start a new thread for my needs.
In Windows 7 Ultimate, I am trying to create a script or task scheduler event that will run a Windows "rundll32.exe" process with arguments at the logon, lock, and switch user screens (basically any screen that is waiting for user to log into the machine).
I have tried using the startup script controls in group policy editor as well as creating a task scheduler event, but so far I am unable to get the process to display on the logon screens.
The command line I am using does work while logged into any account at any user level via the "Run.." dialog as well as via CMD prompt, and is only creating a popup that already exists in the Windows OEM Environment.
The hardest part is this: My friend just bought a new laptop. The new laptop came with this specific feature already enabled, but I have no idea what is making it happen and do not have access to the computer to check out gpedit.msc and task scheduler for possible solutions.
There are two reasons why I need this info: 1) I want the feature to work on my own laptop, and 2) my friend would like help disabling it on his as he doesn't like it.
I have been all over Google, posted at Microsoft Answers, and also posted on the laptop manufacturer's user forums. I have found very few pages that refer to the same question as I have, but none have answers that work, and since I have seen and know that this is possible, I am compelled to continue looking.
The laptop that this is currently working on was purchased with a fresh install of Win 7 Ultimate and no manufacturer bloatware/additional software added, so we know that the feature was made to happen by whomever it was that installed the OS and configured it for sale. Therefore I am certain it is just a matter of the right task or script in Windows itself before I see the results I need and then know how to direct my friend to disable his via phone.
The specific call is "rundll32.exe van.dll,RunVAN". In task scheduler I have set this to run as "SYSTEM" and set the triggers for startup, workstation lock, and local disconnect. I have tried using full path to rundll32.exe as well as the bare command. In gpedit startup scripts I have tried full path and bare command. Neither of which for either case is making this popup show on the logon screens.
Any and all help and/or advice on this would be greatly appreciated by both myself and my friend.
dynamic display of images for the credential provider