Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
DaRkSe7eN

NliteOS - RunOnce Help - How to execute .cmd file

Recommended Posts

Hi guys..

What command can i put at RunOnce to execute (run only) a .cmd file?..

The .cmd file is located on my cd \OEM\RunOnce

Share this post


Link to post
Share on other sites

%SOURCE%\OEM\RunOnce\yourfile.cmd

Greetings

Still doesn't work. My .cmd file doesn't auto-execute after welcome screen.

Share this post


Link to post
Share on other sites
Guest

%SOURCE% includes a trailing backslash (\). You may want to try the following:

%SOURCE%OEM\RunOnce\yourfile.cmd

Share this post


Link to post
Share on other sites

%SOURCE% includes a trailing backslash (\). You may want to try the following:

%SOURCE%OEM\RunOnce\yourfile.cmd

I've tried this patterns but still doesn't work..

%SOURCE%\OEM\RunOnce\yourfile.cmd

%SOURCE%OEM\RunOnce\yourfile.cmd

Do i need to remove the spaces between my .cmd file name?..

~ My .cmd file name is "WXPx86BE - Setup.cmd"

Edited by DaRkSe7eN

Share this post


Link to post
Share on other sites

Yes, remove the spaces.

It Works.. But my .cmd file executes after i set my user account..

The sequence must be : Set my User account, Apply System Setting, Desktop, And my .cmd will auto-execute..

Please help me..

Share this post


Link to post
Share on other sites

You have a few options. What you've already stated may not be possible. Why so specific?

It is possible because i've already seen it. Picture .. It is from Windows XP Professional SP3 Black Edition.. And i want to do it with my own copy of Legit Windows XP Installation CD..

Share this post


Link to post
Share on other sites
Guest

That's a means to an end. It requires adding registry entries through your CMD file, or directly through nLite via another method, related to the following key:

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
To help further with specific entries it is necessary to know what end you're trying to reach. Be specific.

EDIT: Figure I'll add this before jaclaz does. ;)

http://homepage.ntlworld.com./jonathan.deboynepollard/FGA/put-down-the-chocolate-covered-banana.html

Edited by 5eraph

Share this post


Link to post
Share on other sites
Guest

Try adding the following command to nLite's RunOnce. I'm unable to test without more information from you.

REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v "Task" /d "%SOURCE%OEM\RunOnce\yourfile.cmd" /f

Share this post


Link to post
Share on other sites

But you got the wrong link :w00t:, in this case jaclaz would have most probably earlier used the Standard Litany one ;) (which is introductory to the chocolate covered banana issue) :

http://homepage.ntlworld.com./jonathan.deboynepollard/FGA/problem-report-standard-litany.html

jaclaz

Edited by jaclaz

Share this post


Link to post
Share on other sites

Try adding the following command to nLite's RunOnce. I'm unable to test without more information from you.

REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v "Task" /d "%SOURCE%OEM\RunOnce\yourfile.cmd" /f

Thanks for the BIG help.. It works exactly what I really want to..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...