IPB

Welcome Guest ( Log In | Register )

Recommended
BootDisk.com

Active Users

 
Reply to this topicStart new topic
Missing DOS EXEs
FiZiX
post Sep 15 2008, 12:43 PM
Post #1


Member
**

Group: Members
Posts: 25
Thank(s): 0
Joined: 27-July 06
Member No.: 73



I've noticed that LiveXP is missing many DOS EXEs like FIND.EXE, XCOPY.EXE, ect...

Was this intentional? Would it be helpful if I wrote a script to add them back in (or would this be more of a bugfix situation)?
Go to the top of the page
 
+Quote Post
Lancelot
post Sep 15 2008, 12:54 PM
Post #2


Bug Catcher
***

Group: Advanced user
Posts: 675
Thank(s): 48
Joined: 8-May 08
Member No.: 15,072


Turkey


yes it is intentional

no it is not a bugfix situation

yes you can write a script

example:
Expand,"%source_win%\XCOPY.EX_","%target_win%\system32"
require_file,chkdsk.exe

(IMG:../forums/style_emoticons/default/thumbup.gif)
Go to the top of the page
 
+Quote Post
FiZiX
post Sep 15 2008, 01:12 PM
Post #3


Member
**

Group: Members
Posts: 25
Thank(s): 0
Joined: 27-July 06
Member No.: 73



OK, I'll write an "Add DOS Utils" script.

Do you think it should be in \Basic\Build or \Basic\Tweaks? Would it matter where it runs in the build process?
Go to the top of the page
 
+Quote Post
Lancelot
post Sep 15 2008, 01:18 PM
Post #4


Bug Catcher
***

Group: Advanced user
Posts: 675
Thank(s): 48
Joined: 8-May 08
Member No.: 15,072


Turkey


QUOTE
Would it matter where it runs in the build process

in some cases it can matter
do most of your addings under apps which would make you feel safe

i created a folder for this kind of things (downloaded, manuel addings) not to mix with the ones that are downloaded
....\Projects\LiveXP\Apps\9Lancelot_ads

example:

FiZiX_Addings.script

[Main]
Title=FiZiX_Addings
Type=script
Selected=True
Level=5
Author=FiZiX
Credits=
Description=
Version=001
Contact=

[Process]
Expand,"%source_win%\XCOPY.EX_","%target_win%\system32"
require_file,chkdsk.exe


i rarely put scripts outside apps, only when essential (IMG:../forums/style_emoticons/default/smile.gif)
Go to the top of the page
 
+Quote Post
FiZiX
post Sep 15 2008, 01:57 PM
Post #5


Member
**

Group: Members
Posts: 25
Thank(s): 0
Joined: 27-July 06
Member No.: 73



QUOTE (Lancelot @ Sep 15 2008, 09:18 AM) *
in some cases it can matter
do most of your addings under apps which would make you feel safe

i created a folder for this kind of things (downloaded, manuel addings) not to mix with the ones that are downloaded
....\Projects\LiveXP\Apps\9Lancelot_ads

example:

FiZiX_Addings.script

[Main]
Title=FiZiX_Addings
Type=script
Selected=True
Level=5
Author=FiZiX
Credits=
Description=
Version=001
Contact=

[Process]
Expand,"%source_win%\XCOPY.EX_","%target_win%\system32"
require_file,chkdsk.exe


i rarely put scripts outside apps, only when essential (IMG:../forums/style_emoticons/default/smile.gif)


I see what you mean. I would like to release this script for others to download, however. I was going to make it a level 1. Do you think that makes sense?

Also, is it better to use require_file or CopyOrExpand?
Go to the top of the page
 
+Quote Post
Lancelot
post Sep 15 2008, 02:03 PM
Post #6


Bug Catcher
***

Group: Advanced user
Posts: 675
Thank(s): 48
Joined: 8-May 08
Member No.: 15,072


Turkey


no need to quote all message (IMG:../forums/style_emoticons/default/biggrin.gif)

level 5 is good for your aim,
look meaning of level in tutorial section.

QUOTE
Also, is it better to use require_file or CopyOrExpand?


it is better if a master answer this question, i guess, as i see require_file in newer scripts more, probably require_file is better.
I am only a veteran, a master answer will be more clear.
Go to the top of the page
 
+Quote Post
Nuno Brito
post Sep 15 2008, 02:20 PM
Post #7


Advanced Member
***

Group: .script developer
Posts: 6,137
Thank(s): 127
Joined: 13-July 06
From: Azores
Member No.: 1


Portugal


require_file is an API function that was made for a few reasons.

- avoid copying a file if it already exists on the target to save time
- avoid using hard coded paths on copyOrExpand to support both XP and Vista or x64 specific directories
- simpler coding
- script developers can modify the require_file if they wish.

Whenever possible, API functions are adviced to keep scripts working in future projects.

(IMG:../forums/style_emoticons/default/smile.gif)
Go to the top of the page
 
+Quote Post
FiZiX
post Sep 15 2008, 05:06 PM
Post #8


Member
**

Group: Members
Posts: 25
Thank(s): 0
Joined: 27-July 06
Member No.: 73



Thank you both for your help! I've posted the script here:

http://www.boot-land.net/forums/?showtopic=5719
Go to the top of the page
 
+Quote Post
« Next Oldest · nativeEx & LiveXP · Next Newest »
 

Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Display Mode: Standard · Switch to: Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum

RSS Lo-Fi Version Time is now: 12th October 2008 - 08:58 AM

W3C XHTML • © 2008 Boot Land • All rights reserved • W3C CSS