You could use something like this:
[ at ]echo off set Source=d:\Movie Files set script=c:\script.scr set site=ftp.jansen.com set user=steven set password=SomePassword
for /F "delims=" %%a in ('dir /b /od "%Source%"') do set name=%%a if exist "%Source%\movie.mwv" del "%Source%\movie.mwv" ren "%Source%\%name%" movie.mwv
echo> %script% %user% echo>>%script% %password% echo>>%script% binary echo>>%script% put "%name%" echo>>%script% quit
ftp -s:%Script% %site% del %script% del "%Source%\movie.mwv"
"stevenjansen" <stevenjansen.3kiujb[ at ]DoNotSpam.com> wrote in message news:stevenjansen.3kiujb[ at ]DoNotSpam.com...
[Quoted Text] > > OK, i'm sorry, My English is very bat. But I think what you mean. > Maybe is this possible idea: > > A program on my computer will open the batchfile > The batchfile wil sleep "X" seconds > After sleep "X" seconds, the batchfile will rename a file that is on > the last time modified. > > With other words; A file that is last modified will rename by the batch > file in "movie.exe". > Than the file will be uploaded bij a ftp and after that de local file > will be deleted. > > > -- > stevenjansen > ------------------------------------------------------------------------ > stevenjansen's Profile: > http://forums.techarena.in/members/stevenjansen.htm> View this thread: http://forums.techarena.in/server-scripting/1088584.htm> > http://forums.techarena.in>
|