ike581 Posted April 25, 2004 Share Posted April 25, 2004 Is there a way to have notepad automatically open a readme file i place on the users desktop on the SECOND boot only? Link to comment Share on other sites More sharing options...
aknott Posted April 25, 2004 Share Posted April 25, 2004 HIduring the first boot make a shortcut in your startmenu using a vbscript run by runonceexthis shortcut points to a commandline file .cmd( better is vbscript if u know it )the file does the following1. removing of the shortcut (so u have autodestruction of the shortcut itself )2. run 'notepad yourfile.txt'et voila... Link to comment Share on other sites More sharing options...
ps7 Posted April 25, 2004 Share Posted April 25, 2004 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 Link to comment Share on other sites More sharing options...
Alanoll Posted April 25, 2004 Share Posted April 25, 2004 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 fileTITLE Executing ReadMe.TXT notepad "%Userprofile%\Desktop\readme.txt"del "%AllUsersProfile%\Start Menu\Programs\Startup\readme.cmd" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now