Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #17  
Old 19-07-2020, 15:38
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,754
Thanks: 2,191
Thanked 11,222 Times in 2,312 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by BLACKFIRE69 View Post
Code:
@echo off

set /p num=Enter output archive name: 
set/p comp= Enter Compression Method: 

set "InputDir=%~dp0In"
set "OutputDir=%~dp0Out"

cd /d "C:\Users\BLACKFIRE69\Downloads\Compressed\Test\Binaries"

arc.exe a -ep1 -dses --dirs -s; -lc- -di -i2 -r -w.\Temp -m%comp% "%OutputDir%\MASQUERADE-Data_%num%.MSQ" "%InputDir%\%num%\*"

pause&exit
I think you made cls without considering that Current directory can change, simple fix is the usage of SetCurrentDir function when your cls launches like this

SetCurrentDir(ExtractFilePath(GetModuleName));

where GetModuleName is
Code:
function GetModuleName: string;
var
  szFileName: array [0 .. MAX_PATH] of char;
begin
  FillChar(szFileName, sizeof(szFileName), #0);
  GetModuleFileName(hInstance, szFileName, MAX_PATH);
  Result := szFileName;
end;
A better fix is directly execute every single exe file with full paths and set the work directory too
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
BLACKFIRE69 (19-07-2020), L0v3craft (20-07-2020)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Universal Extractor By DLG felice2011 Conversion Tutorials 5 30-12-2018 04:16
Universal CLS Generator 78372 Conversion Tutorials 57 30-01-2018 04:04
CheatEngine Universal Game Cracker All Games 2014 sillywalks PC Games 1 01-12-2014 12:24
HELP: Universal Backup Instructions [RAW Mode] Rocha PC Games 3 30-06-2004 05:11
Universal Combat RCxxx CyKlone71 PC Games 0 03-03-2004 19:02



All times are GMT -7. The time now is 12:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com