<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Automating a process in Windows</title>
	<link>http://ask.metafilter.com/14598/automate-process-in-windows/</link>
	<description>Comments on Ask MetaFilter post Automating a process in Windows</description>
	<pubDate>Mon, 31 Jan 2005 11:17:16 -0800</pubDate>
	<lastBuildDate>Mon, 31 Jan 2005 11:17:16 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Automating a process in Windows</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows</link>	
		<description>I&apos;d like to automate some sort of synchronize process to run every time I start/close a &lt;em&gt;separate&lt;/em&gt; application in Windows.  It should download a data file on launch and upload after exiting, without having to think about it.  Is there any easy way to do this?  Preferably using SFTP or another secure method.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.14598</guid>
		<pubDate>Mon, 31 Jan 2005 10:38:09 -0800</pubDate>
		<dc:creator>sfluke20</dc:creator>
		
			<category>windowsapps</category>
		
			<category>sftp</category>
		
	</item> <item>
		<title>By: orthogonality</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251204</link>	
		<description>Do you mean you want to edit a file which is on an ftp site, and upload the modified file to the same site?&lt;br&gt;
&lt;br&gt;
One option is to make the ftp site into a &quot;network drive&quot;; there are a couple of ways to do this under ms windows, samba being the best bet.&lt;br&gt;
&lt;br&gt;
If that&apos;s not possible, WinSCP is a Windows SFTP client that&apos;ll allow you to click and edit files on the foreign server.&lt;br&gt;
&lt;br&gt;
If that doesn&apos;t work, you can do explicitly what the above solutions really do: write a batch file to download the files, save it to a temporary location, start your editing application on the local copy, and upload the modified copy after your editing application closes.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251204</guid>
		<pubDate>Mon, 31 Jan 2005 11:17:16 -0800</pubDate>
		<dc:creator>orthogonality</dc:creator>
	</item><item>
		<title>By: RikiTikiTavi</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251212</link>	
		<description>If I understand you correctly, I&apos;d write a quick batch script that starts the transfer (using whatever means you like), and then starts your program.  Use the batch script&apos;s shortcut instead of your program&apos;s.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251212</guid>
		<pubDate>Mon, 31 Jan 2005 11:21:29 -0800</pubDate>
		<dc:creator>RikiTikiTavi</dc:creator>
	</item><item>
		<title>By: tuxster</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251227</link>	
		<description>I think sfluke20 is looking for a solution to automate the following:&lt;br&gt;
&lt;br&gt;
1) Download data from remote server&lt;br&gt;
2) Use application to use (edit?) data&lt;br&gt;
3) On application exit, upload modified data back on the website&lt;br&gt;
&lt;br&gt;
For example, if the application was Firefox, and the data was bookmarks, I would say &lt;a href=&quot;http://extensionroom.mozdev.org/more-info/booksync&quot;&gt;Bookmark Synchronizer&lt;/a&gt; (although mine stopped automated dl/ul for no reason, I now have to do it manually).&lt;br&gt;
&lt;br&gt;
sfluke20, I think if you give us a little more specifics (what is the data and what application are you talking about), perhaps we could be more helpful...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251227</guid>
		<pubDate>Mon, 31 Jan 2005 11:51:37 -0800</pubDate>
		<dc:creator>tuxster</dc:creator>
	</item><item>
		<title>By: sfluke20</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251237</link>	
		<description>Right tuxtster, exactly what you described.&lt;br&gt;
&lt;br&gt;
I have an application that has a single binary data file.  I&apos;d like to be able to run the app in multiple places, using the same data file, without having to worry about manually synchronizing the data.  &lt;br&gt;
&lt;br&gt;
(Bonuses would be to somehow backup the data file somewhere in the process)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251237</guid>
		<pubDate>Mon, 31 Jan 2005 11:58:29 -0800</pubDate>
		<dc:creator>sfluke20</dc:creator>
	</item><item>
		<title>By: tuxster</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251238</link>	
		<description>heh, meanwhile the page I linked to actually had the solution to the problem I&apos;m having with Bookmark Synchronizer...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251238</guid>
		<pubDate>Mon, 31 Jan 2005 11:59:01 -0800</pubDate>
		<dc:creator>tuxster</dc:creator>
	</item><item>
		<title>By: zsazsa</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251320</link>	
		<description>sfluke20, download &lt;a href=&quot;http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html&quot;&gt;pscp&lt;/a&gt;, which will let you upload/download a file to a remote server running ssh or sftp.  Then make a .bat file with the contents:&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;pscp user@site.com:somefile.dat &quot;C:\some directory\&quot;&lt;br&gt;
&quot;C:\Program Files\Some App\app.exe&quot;&lt;br&gt;
pscp &quot;C:\Some Direcotory\somefile.dat&quot; user@site.com:&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
That should do it.  The pscp process will ask you for a password each time.  You could avoid the password process by using a public/private key in conjunction with puttygen/pageant, available on the PuTTY page I liked to above.  It&apos;s kind of involved, so get the normal password way working first.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251320</guid>
		<pubDate>Mon, 31 Jan 2005 13:58:29 -0800</pubDate>
		<dc:creator>zsazsa</dc:creator>
	</item><item>
		<title>By: sfluke20</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251334</link>	
		<description>Cool -- I just came back to say I&apos;d gotten that exact same thing working.  With the public/private key stuff.  Exactly what I want -- although the little batch file window is a little annoying (I&apos;ll deal with it!).  Thanks everyone!&lt;br&gt;
&lt;br&gt;
Now just gotta figure out how to create a date variable in the batch file.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251334</guid>
		<pubDate>Mon, 31 Jan 2005 14:16:40 -0800</pubDate>
		<dc:creator>sfluke20</dc:creator>
	</item><item>
		<title>By: seanyboy</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251384</link>	
		<description>Be careful with batch files though. If your batch file says (for example)&lt;br&gt;
&lt;br&gt;
notepad&lt;br&gt;
word&lt;br&gt;
notepad&lt;br&gt;
&lt;br&gt;
It won&apos;t run one program, wait for it to finish and then run the other. It&apos;ll run all three programs at once. (not strictly true, but that&apos;s what it&apos;ll look like to you). &lt;br&gt;
&lt;br&gt;
for Date, use command line variable %date% &lt;br&gt;
e.g. echo %date%&lt;br&gt;
&lt;br&gt;
To do this properly some kind of vbscript may be the answer.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251384</guid>
		<pubDate>Mon, 31 Jan 2005 15:37:09 -0800</pubDate>
		<dc:creator>seanyboy</dc:creator>
	</item><item>
		<title>By: TimeFactor</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251423</link>	
		<description>In Win2K, batch files &lt;i&gt;do&lt;/i&gt; execute commands sequentially; a command doesn&apos;t execute until the previous command finishes and the command doesn&apos;t finish until any application it calls terminates. That may not be the case with other versions of windows though.&lt;br&gt;
&lt;br&gt;
If you create a shortcut to the batch file you can specify in the properties of the batch file for it to run minimized (or maximized or normal, the default). The annoying command window will still be there, you just won&apos;t see it. Again, I&apos;m talking about Win2K.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251423</guid>
		<pubDate>Mon, 31 Jan 2005 17:25:56 -0800</pubDate>
		<dc:creator>TimeFactor</dc:creator>
	</item><item>
		<title>By: TimeFactor</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251425</link>	
		<description>...the properties of &lt;i&gt;the shortcut to&lt;/i&gt; the batch file...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251425</guid>
		<pubDate>Mon, 31 Jan 2005 17:27:17 -0800</pubDate>
		<dc:creator>TimeFactor</dc:creator>
	</item><item>
		<title>By: seanyboy</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251599</link>	
		<description>Not always. Try putting this in a batch file, and see what happens.&lt;br&gt;
&lt;pre&gt;&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot;&lt;br&gt;&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot;&lt;br&gt;&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot;&lt;br&gt;explorer&lt;br&gt;explorer&lt;/pre&gt;&lt;br&gt;
You&apos;ll have to run app.exe, and see if it waits.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251599</guid>
		<pubDate>Tue, 01 Feb 2005 02:40:35 -0800</pubDate>
		<dc:creator>seanyboy</dc:creator>
	</item><item>
		<title>By: TimeFactor</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251738</link>	
		<description>seanyboy: yup, I get three instances of firefox and two of explorer. Your earlier example and others I&apos;ve tried do behave as I described; I&apos;m not sure why there&apos;s a difference but there is.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251738</guid>
		<pubDate>Tue, 01 Feb 2005 10:01:25 -0800</pubDate>
		<dc:creator>TimeFactor</dc:creator>
	</item><item>
		<title>By: sfluke20</title>
		<link>http://ask.metafilter.com/14598/automate-process-in-windows#251739</link>	
		<description>Huh.  Runs sequentially for me in Windows XP ... Exactly what I want.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.14598-251739</guid>
		<pubDate>Tue, 01 Feb 2005 10:06:34 -0800</pubDate>
		<dc:creator>sfluke20</dc:creator>
	</item>
	</channel>
</rss>
