Remote Desktop problem

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Jmac2501
Pro Scripter
Posts: 76
Joined: Tue Nov 15, 2005 8:11 pm

Remote Desktop problem

Post by Jmac2501 » Wed Mar 07, 2007 5:44 pm

I am running a scrip from a network remote desktop that I am trying to schedule to run every 3 hours. My script reads a Excel page and transfers the data to a .txt page. The scrip works great if i am logged on to my remote desktop but if i am not logged on no keystrokes or mouse moves are exicuted. Its not a SetFocas problem since i have tryed meny diffrent scripts to see if any key strokes we being made.

I have worked around most of my problems but i can't find a way to close a excel file with out using key strokes or mouse movements. I have tryed closewindow>Microsoft Excel* but then is asks you if you want to save the file or not, and i can't get past this part with out SOME kind of a key stroke or mouse move. I was thinking of dos commands like Killfile /F /IM Excel.exe but i can't send any key strokes. is there a way to have Cmd open with this line pre-writen into it?

I was also wondering if there is a way to save a file in a Read Only state?

ANY Help would be GREAT.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Mar 07, 2007 6:39 pm

From the FAQs:

Why do UI macros fail when I disconnect or minimize the Remote Desktop/Terminal Services session?

http://www.mjtnet.com/msfaq171.htm
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Jmac2501
Pro Scripter
Posts: 76
Joined: Tue Nov 15, 2005 8:11 pm

Post by Jmac2501 » Thu Mar 08, 2007 1:32 am

ok but is there a way to open or save a file as read only?

and is there a way to open cmd with the commands pre writin, like:

run Program>cmd c: killfile /f /im Excel.exe

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts