| 1. |
Solve : Help with batch file please !!!? |
|
Answer» Hi everyone I have had a read on these forums (and loads others!) CD "C:\Program Files\SWFEncrypt 4.0\swfencrypt" -overwrite "C:\Documents and Settings\tester\Desktop\RandomFolder\%GAMENAME%_main.swf" remove the "CD" from the above line so it become: "C:\Program Files\SWFEncrypt 4.0\swfencrypt" -overwrite "C:\Documents and Settings\tester\Desktop\RandomFolder\%GAMENAME%_main.swf" make sure %gamename%_main.swf existThanks for quick reply just tried that and the error has now changed to "the system could not find the path specified" However the path was coppied from the address bar from the top of the directory? Is there anything that can be seen as wrong from the above code? Thanks again!remove/comment @echo off to start debugging. change: IF EXIST "C:\Documents and Settings\tester\Desktop\RandomFolder\%GAMENAME%*" GOTO ENCRYPT to IF EXIST "C:\Documents and Settings\tester\Desktop\RandomFolder\%GAMENAME%_main.swf" GOTO ENCRYPT does this path is correct? C:\Program Files\SWFEncrypt 4.0\swfencryptthanks for yor help, I started taking appart line by line to see what was causing the problem. I found out iw was this line : cd "C:\program files\SWF Encrypt 4.0\swfencrypt" -overwrite "C:\Documents and Settings\tester\Desktop\randomFile\%gameName%_main.swf" and have since changed it to this: CD "C:\Program Files\SWF Encrypt 4.0 swfencrypt "C:\Documents and Settings\tester\Desktop\randomFile\%gameName%_main.swf" this seems to encrypt the file as expected however strangly the batch file then freezes and does not continue onto the next set of instructions? thanks to all your help it seems to work (although not quite as planned) but i think there is something wrong with the ecryption program as it takes about 10 mins to kill the task...... OH well need to search for a more compatible piece of software Thanks agin for all your help!! |
|