Jump to content

Help needed with Windows Batch Program.

- - - - -

  • Please log in to reply
No replies to this topic

#1
thianpa

thianpa

    Newbie

  • Members
  • Pip
  • 1 posts
Can someone please take a look at this and see what i have done wrong..

C:

set SOURCEDIR="C:\Users\thianpa\Downloads"

set DESTINATION="C:\Users\thianpa\Downloads\"

set WINRAR="C:\Program Files (x86)\WinRAR\WinRar.exe"

set FILETYPE=wmv

set FILETYPE2=avi

set SIZE=209715200

set WINRARCODE=%WINRARCODE% a -u -r

cd %SOURCEDIR%

for %%i in (*.%FILETYPE% *.%FILETYPE2%) do %WINRARCODE% -zc:\info\info.txt -m0 -v%SIZE%b 


%DESTINATION%%%~ni.Nightshre.rar %%i

The program suppose to call Winrar.exe and find all the wmv, avi files from this folder C:\Users\thianpa\Downloads and then rar them to 200MB size with each filename including "Nightshre" , I am able to make it right with my local PC but cant get it to work with my Remote Desktop (Windows Server 2008) .

Can you guys take a look or can you make something like this in a different way? I'm all ears :)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users