Jump to content

Recommended Posts

Posted

Is there a way to have notepad automatically open a readme file i place on the users desktop on the SECOND boot only?


Posted

HI

during the first boot make a shortcut in your startmenu using a vbscript run by runonceex

this shortcut points to a commandline file .cmd

( better is vbscript if u know it )

the file does the following

1. removing of the shortcut (so u have autodestruction of the shortcut itself )

2. run 'notepad yourfile.txt'

et voila...

Posted

HI there,

Just place your script in your Startup located in your Start Menu.Don't forget to delete the script after running it - else it will run everytime you start up Windows.

To copy your script to the Startup Menu you can use this method.

Copy [location,filename] [location]

example:

copy C:\scriptfile.cmd "C:\Documents and Settings\All Users\Start Menu\Programs\Startup"

Remember to use " ".

Hope this helps

Posted

if you're going to use a batch file to call it......

the startup method would be the easiest.

copy C:\install\readme.cmd "%AllUsersProfile%\Start Menu\Programs\Startup"

then in the readme.cmd file

TITLE Executing ReadMe.TXT
notepad "%Userprofile%\Desktop\readme.txt"del "%AllUsersProfile%\Start Menu\Programs\Startup\readme.cmd"

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...