• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
Sign in to follow this  
Followers 0
DaRkSe7eN

NliteOS - RunOnce Help - How to execute .cmd file

13 posts in this topic

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

0

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.

0

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

0

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
0

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..

0

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..

0

Share this post


Link to post
Share on other sites

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
0

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
0

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
0

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..

0

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

  • Recently Browsing   0 members

    No registered users viewing this page.