Topics - mediaguycouk [ switch to compact view ]

Pages: prev1 2 3 4 5 [6] 7 8next
26
A task at work would be easier if I wrote a program to handle it, so I'm going to try and write a C# Application. As I'm new I thought I might document my progress here so you can tell me if I'm being noobish with something or I've missed things.

I learn best by trying and then improving, so this should help me.

The overview is that we have a program called Squeeze that converts files into Flash FLV files. We have a filestore on the same server and Squeeze has 'watch folders' that when you put a file in the folder it will automatically convert it.

This program will have to
  • Check that squeeze is running
  • Look in a database or text file to see which files need moving into the watch folder
  • Move files in and out of the watch folders
  • Move some special files into different folders
  • Send resultant files into a network drive

Things that I don't currently know how to do

  • Check that a program is running
  • Check that a network drive exists and works before sending files to it
  • Most unexpected errors

I'll update you as I go along and please chip in if you see a way of helping.

27
General Software Discussion / Returnil virtual system
« on: April 25, 2008, 05:52 AM »

28
General Software Discussion / Cool Iris
« on: April 09, 2008, 08:19 AM »
Found this amazing firefox plugin today and I just have to share it. It makes Digg and Forums so much easier to read.

I'll show rather than explain

http://www.mediaguy.co.uk/tempcode/iris.swf.html

https://addons.mozilla.org/en-US/firefox/addon/2207

29
General Software Discussion / [Solved] Batch file problem
« on: April 03, 2008, 10:31 AM »
I have the following batch file but I have a problem with it. The IF statements check that a tv program has been recorded. If it has then it runs it through VideoReDo, if it hasn't it will send an email so I can check the recording software.

My problem is that when it runs the email sending .bat file the current batch file stops. It will stop at the first instance and not run any of the other code, even the pause at the end. It just stops (and closes before I can read anything on the screen).

Is there some command that I need to place before the bat file to stop this from happening and ensure that computer returns to the original file?

@echo off
echo Deleting files
del "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsArabicTuesday.mpg"
del "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRAITuesday.mpg"
del "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRTPTuesday.mpg"
del "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRussianTuesday.mpg"
del "E:\Staff Media\Private Files\#shared\LRC\gra\Fixed\NewsArabicTuesday.mpg"
del "E:\Staff Media\Private Files\#shared\LRC\gra\Fixed\NewsRAITuesday.mpg
del "E:\Staff Media\Private Files\#shared\LRC\gra\Fixed\NewsRTPTuesday.mpg
del "E:\Staff Media\Private Files\#shared\LRC\gra\Fixed\NewsRussianTuesday.mpg
echo Deleting done
echo Renaming files
rename "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsArabicThursday*.mpg" NewsArabicThursday.mpg
rename "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRAIThursday*.mpg" NewsRAIThursday.mpg
rename "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRTPThursday*.mpg" NewsRTPThursday.mpg
rename "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRussianThursday*.mpg" NewsRussianThursday.mpg
echo Renaming done
echo Start conversion:

IF EXIST "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsArabicThursday.mpg". (
cscript //nologo "C:\Program Files\VideoReDoPlus\vp.vbs" "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsArabicThursday.mpg" "E:\Staff Media\Private Files\#shared\LRC\gra\Fixed\NewsArabicThursday.mpg" /t1 /d /q /e
) ELSE (
EmailFileMissing.bat .
)

IF EXIST "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRAIThursday.mpg". (
cscript //nologo "C:\Program Files\VideoReDoPlus\vp.vbs" "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRAIThursday.mpg" "E:\Staff Media\Private Files\#shared\LRC\gra\Fixed\NewsRAIThursday.mpg" /t1 /d /q /e
) ELSE (
EmailFileMissing.bat .
)

IF EXIST "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRTPThursday.mpg". (
cscript //nologo "C:\Program Files\VideoReDoPlus\vp.vbs" "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRTPThursday.mpg" "E:\Staff Media\Private Files\#shared\LRC\gra\Fixed\NewsRTPThursday.mpg" /t1 /d /q /e
) ELSE (
EmailFileMissing.bat .
)

IF EXIST "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRussianThursday.mpg". (
cscript //nologo "C:\Program Files\VideoReDoPlus\vp.vbs" "E:\Staff Media\Private Files\#shared\LRC\gra\Recorded\NewsRussianThursday.mpg" "E:\Staff Media\Private Files\#shared\LRC\gra\Fixed\NewsRussianThursday.mpg" /t1 /d /q /e
) ELSE (
EmailFileMissing.bat .
)

echo All done
pause


Pages: prev1 2 3 4 5 [6] 7 8next
Go to full version