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


Guest   
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
DaRkSe7eN    0

%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
DaRkSe7eN    0

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
Guest   
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   
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
jaclaz    906

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
DaRkSe7eN    0

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

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×