Jump to content

How to extract Uha file with autoit...??


Recommended Posts

Helloo.. I new in this forum..

And just learning Autoit script..

For all master in this forum colud U help me..

in bat file command line like this..:

@echo off

..\uharc.exe x -t"%temp%\temporary file" -y+ files\partition.uha

start "" /D"%temp%\temporary file" "partition.exe"

uharc.exe extract partition.uha to "temporay folder\temporary file" after extract than run partition exe..

Question 1:

How to change command line in the bat file to autoit script..

I has create simple script like this..

DirCreate(@TempDir & "\temporary file")

Run(@ScriptDir & "\Document\Coomand\Partition.bat","",@sw_hide)

ProcessWaitClose("partition.exe")

$PID = FileDelete (@TempDir& "\temporary file")

uharc.exe save in document

bat file save in command folder

but if I execute script i get erorr command info..:

..\uharc.exe` is not recognized as an internal or external command..

But if I create autoit script run ("...Bat") save in command folder,

then execute script, bat file run without anything problm..

I`m sorry for my english, I`m indonesian.. Not fluently in english language..

Link to comment
Share on other sites

bat file save in command folder

Run(@ScriptDir & "\Document\Coomand\Partition.bat","",@sw_hide)

Maybe a mistake?

Hi,

If the coomand path is correct, you should set the workingdir:

Run(@ScriptDir & "\Document\Coomand\Partition.bat","@ScriptDir & "\Document\Coomand",@sw_hide)

;-))

Stefan

Link to comment
Share on other sites

Run(@ScriptDir & "\Document\Coomand\Partition.bat","",@sw_hide)

get erorr

"..\uharc.exe` is not recognized as an internal or external command.."

it`s means location bat file is can be found..

So.. what is the correct sript..??

Or how to change command bat file into autoit script..??

Link to comment
Share on other sites

Hi,

If the coomand path is correct, you should set the workingdir:

Run(@ScriptDir & "\Document\Coomand\Partition.bat","@ScriptDir & "\Document\Coomand",@sw_hide)

;-))

Stefan

To 99ojo

It`s Work... Thank`s..

But onemore question Coule U make autoit script for me from the command bat in my Question...??

Link to comment
Share on other sites

Hi,

this might work. I don't know exactly what you are doing.

Also you have some code to get the idea.

DirCreate(@TempDir & "\temporary file")
;Run(@ScriptDir & "\Document\Coomand\Partition.bat","",@sw_hide) ; batch conversion next lines
$tempdir = @TempDir & "\temporary file"
RunWait (@ScriptDir & "\" & "Document\uharc.exe x -t" & Chr (34) & $tempdir & Chr (34) & " -y+ files\partition.uha") ; you may add workingdir and @sw_hide and change RunWait to Run
Run (@ScriptDir & "\" & "Document\Coomand\partition.exe", $tempdir) ; proof path to partition.exe
ProcessWaitClose("partition.exe")
$PID = FileDelete (@TempDir& "\temporary file")

;-))

Stefan

Link to comment
Share on other sites

Hi,

this might work. I don't know exactly what you are doing.

Also you have some code to get the idea.

DirCreate(@TempDir & "\temporary file")
;Run(@ScriptDir & "\Document\Coomand\Partition.bat","",@sw_hide) ; batch conversion next lines
$tempdir = @TempDir & "\temporary file"
RunWait (@ScriptDir & "\" & "Document\uharc.exe x -t" & Chr (34) & $tempdir & Chr (34) & " -y+ files\partition.uha") ; you may add workingdir and @sw_hide and change RunWait to Run
Run (@ScriptDir & "\" & "Document\Coomand\partition.exe", $tempdir) ; proof path to partition.exe
ProcessWaitClose("partition.exe")
$PID = FileDelete (@TempDir& "\temporary file")

;-))

Stefan

I try U`r script but nothing happen If U have HirenBoot CD could U try for me how to make them run in autoit script..

I newbe just in one week I know autoit so I zero with script.. I really appreciate for your help..

one`s again sorry for my english..

Link to comment
Share on other sites

I try U`r script but nothing happen If U have HirenBoot CD could U try for me how to make them run in autoit script..

I newbe just in one week I know autoit so I zero with script.. I really appreciate for your help..

one`s again sorry for my english..

Hi,

no i haven't HirenBoot CD. So i can't reproduce and i don't know what's going on.

Have you tried the suggestion, e.g change the RunWait to Run?

Another try is, to change the line with Run command for partition.exe.

Look in HelpFile to understand the functions, use for dos commands the switch /? to see what the batch switches are doing.

At least your batch file is working. You could use AutoIT to create the batch file and delete it afterwards.

See helpfile FileWrite / FileDelete function.

Good luck

Stefan

Link to comment
Share on other sites

Hi,

no i haven't HirenBoot CD. So i can't reproduce and i don't know what's going on.

Have you tried the suggestion, e.g change the RunWait to Run?

Another try is, to change the line with Run command for partition.exe.

Look in HelpFile to understand the functions, use for dos commands the switch /? to see what the batch switches are doing.

At least your batch file is working. You could use AutoIT to create the batch file and delete it afterwards.

See helpfile FileWrite / FileDelete function.

Good luck

Stefan

Ok I will read HelpFile and I will do if I could.. And I hope U always exist in this forum.. Thank`s.. U is the best..

For HirenBoot CD U can download from here..:

http://www.hirensbootcd.net/

and info of HirenBoot from here:

http://www.hiren.info/pages/bootcd

Link to comment
Share on other sites

Ok I will read HelpFile and I will do if I could.. And I hope U always exist in this forum.. Thank`s.. U is the best..

For HirenBoot CD U can download from here..:

http://www.hirensbootcd.net/

and info of HirenBoot from here:

http://www.hiren.info/pages/bootcd

Hi,

thanks for the flowers, but i'm not the best. There are loads of better people here on forum.

I only try my best and i'm willing to help other people.

If you ever have coding problems you are welcome in forum and you will get help from others or me.

;-))

Stefan

Edited by 99ojo
Link to comment
Share on other sites

Hi,

thanks for the flowers, but i'm not the best. There are loads of better people here on forum.

I only try my best and i'm willing to help other people.

If you ever have coding problems you are welcome in forum and you will get help from others or me.

;-))

Stefan

Ok..

sometime if u has download HirenBoot.. then try change bat file into autoit script then send to my email.. ;):)

Link to comment
Share on other sites

Hi.. please help me again :

Uharc.exe and Autoit script save in same folder

Partition.uha save in file folder

then create a script like that you give :

DirCreate(@TempDir & "\temporary file")

$tempdir = @TempDir & "\temporary file"

Run("uharc.exe x -t" & Chr (34) & $tempdir & Chr (34) & "-y+ files\partition.uha")

Script Ok can be run but not create temporary folder in tempdir, script create temporary folder-y+ in tempdir

than i modiv script, delete -y+

Run("uharc.exe x -t" & Chr (34) & $tempdir & Chr (34) & "files\partition.uha")

But script not work, Nothing happen..

Command for Uharc.exe

x eXtract files with full pathname

t<dir> Set extract target dir

y[-,+] Assume yes on all queries

Edited by penggilas2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...