actually wrote a stored proc based off that concept... i found some stuff on the net a while after i posted.check her out.ALTER procedure [dbo].[filesize](@filesize int, @filename varchar(50))asdeclare @doscommand varchar(50), @size varchar(30),@s varchar(100), @i intset @doscommand = 'dir c:\orders\'+@filenameCREATE TABLE #tempList (Files VARCHAR(500))INSERT INTO #tempListEXEC MASTER..XP_CMDSHELL @doscommandDELETE #tempList WHERE Files LIKE '%<dir>%' OR Files LIKE ' %' OR Files IS NULLUPDATE #tempList SET files =RIGHT(files,(LEN(files)-20))UPDATE #tempList SET files =LTRIM(files)set @size = (SELECT LEFT(files,PATINDEX('% %',files)) AS Size FROM #tempList)select @s = @SIZE select @i = patindex('%,%', @s) while @i > 0 begin select @s = replace(@s, substring(@s, @i, 1), '') select @i = patindex('%,%', @s) end set @filesize = @s return @filesizei'm trying to use cmdshell to run a cscript now, but i keep getting permission denied, any ideas?