fireguy1125
asked on
Open Excel 2007 Workbook by Scheduled Task on Server 2008R2
I want to be able to open an xls file automatically on a scheduled basis without being logged in. Is this possible using scheduled tasks? If so, what parameters would I need to use to in order to achieve this?
wouldn't it be better to pipe text into a txt file than import it when you are logged in?
there's a lot of automation tools. but all i've tried are prone to errors or not grabbing the info I'd like to collect properly.
echo <text you want to send> >> <c:\folder\fileyouwantappe nded.txt>
>> adds to last line in a txt file
> re-writes the file.
Maybe I'm missing something, but I can't see the point of opening an excel file while not logged in. unless there's some other process that's going to use/add data etc...
just my knee jerk reaction, but I'd look for a more programatic method of capturing the end goal, without relying on excel when you're not logged in.
there's a lot of automation tools. but all i've tried are prone to errors or not grabbing the info I'd like to collect properly.
echo <text you want to send> >> <c:\folder\fileyouwantappe
>> adds to last line in a txt file
> re-writes the file.
Maybe I'm missing something, but I can't see the point of opening an excel file while not logged in. unless there's some other process that's going to use/add data etc...
just my knee jerk reaction, but I'd look for a more programatic method of capturing the end goal, without relying on excel when you're not logged in.
ASKER
Thanks, I put this in a batch file, and it runs successfully, however when I make it a scheduled task, it shows the operation completed successfully, but it did not.
if your not logged in how would you know?
is the excel collecting data, or writing data. or do you just want it open someplace?
I don't understand the goal. if there are no users logged on I don't think excel is going to do anything or even actually open, as it's an application that interacts with the user environment. so might work if the user space is logged in and locked, but if "no one" is able to interact what could it do?
I've not tried this so I'm not saying it's impossible, but it doesn't make sense to me.
sorta like asking why a car won't fly.
is the excel collecting data, or writing data. or do you just want it open someplace?
I don't understand the goal. if there are no users logged on I don't think excel is going to do anything or even actually open, as it's an application that interacts with the user environment. so might work if the user space is logged in and locked, but if "no one" is able to interact what could it do?
I've not tried this so I'm not saying it's impossible, but it doesn't make sense to me.
sorta like asking why a car won't fly.
ASKER
When i test the scheduled task, it is doing it while logged in.
The file is a simple batch file that just has the path to an xls file.
The xls file has a Macro in it that runs and modifies the file, then saves it as a different file name in the same directory.
The file is a simple batch file that just has the path to an xls file.
The xls file has a Macro in it that runs and modifies the file, then saves it as a different file name in the same directory.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
excel filename.xls - The excel.exe must be in the path or you will need to show the path (i.e. C:\Program Files (x86)\Microsoft Office\OFFICE11\Excel.exe
I'm assuming that you need to open it so it can update from other data sources on an automated basis, then save and close again.