penggilas2 Posted November 27, 2009 Posted November 27, 2009 #include <File.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> Global $hMain $hMain = GUICreate('Recovery', 200, 70) $GetDir = GUICtrlCreateButton('Get Drive', 10, 10, 150, 30, $SS_CENTER) $gho = @ScriptDir & "\" GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $GetDir $Dir = FileSelectFolder("Choose a folder.", "") Run("ghost32.exe -clone,mode=pload,src="& $gho &"Ghost.gho:1,dst="& $Dir &"-auto-sure") EndSwitch WEnd Get Error when Select drive M than error invalid target partition that mean error in src="& $gho &" Than change dst="& $Dir &"-auto-sure" to dst=2:1-auto-sure ,because M in my kom is drive no 2 partition 1. ghost restore normal no error.. so actually wrong not in src="& $gho &" How to create script fileselectdrive..?? to get dst=M:-auto-sure without "\" Or autoit to get drive number not dirve letter..
EndFunc Posted November 27, 2009 Posted November 27, 2009 #include <File.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> Global $hMain $hMain = GUICreate('Recovery', 200, 70) $GetDir = GUICtrlCreateButton('Get Drive', 10, 10, 150, 30, $SS_CENTER) $gho = @ScriptDir & "\" GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $GetDir $Dir = FileSelectFolder("Choose a folder.", "") Run("ghost32.exe -clone,mode=pload,src="& $gho &"Ghost.gho:1,dst="& $Dir &"-auto-sure") EndSwitch WEnd Get Error when Select drive M than error invalid target partition that mean error in src="& $gho &" Than change dst="& $Dir &"-auto-sure" to dst=2:1-auto-sure ,because M in my kom is drive no 2 partition 1. ghost restore normal no error.. so actually wrong not in src="& $gho &" How to create script fileselectdrive..?? to get dst=M:-auto-sure without "\" Or autoit to get drive number not dirve letter.. Why don't you just map a drive before you run the command? EndFuncAutoIt is the shiznit. I love it.
penggilas2 Posted November 28, 2009 Author Posted November 28, 2009 Why don't you just map a drive before you run the command?whether there is another way..?? without map drive..??
EndFunc Posted November 28, 2009 Posted November 28, 2009 whether there is another way..?? without map drive..??When I need to map a drive for a process like imaging, i let the script do it for me. I put it in the script to map to any available drive using DriveMapAdd() or a specific letter if I want and process the script. Then I use DriveMapDel() when it's done. That's the easiest way I've done to do things.I may have what you're trying to do wrong, but that is what I could understand. EndFuncAutoIt is the shiznit. I love it.
penggilas2 Posted November 28, 2009 Author Posted November 28, 2009 When I need to map a drive for a process like imaging, i let the script do it for me. I put it in the script to map to any available drive using DriveMapAdd() or a specific letter if I want and process the script. Then I use DriveMapDel() when it's done. That's the easiest way I've done to do things.I may have what you're trying to do wrong, but that is what I could understand.Could you give me sample script DriveMapAdd() from your script..??I will learn to improve my scrip..
penggilas2 Posted November 28, 2009 Author Posted November 28, 2009 Hi, for All scripter.. please give me idea and Solution..
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now