a4bc6fe2   
   XPost: comp.os.ms-windows.misc   
   From: none@none.invalid   
      
   On Fri, 18 Mar 2011 12:33:09 -0700 (PDT), KevinSimonson   
    wrote:   
      
   >On Mar 17, 3:37 pm, Char Jackson wrote:   
   >   
   >> It doesn't matter much where you put your batch file or what you call   
   >> it, hence the multiple suggestions you've found already. Put it where   
   >> it's convenient for you. Some use the root folder of C:\, some create   
   >> a new folder for batch files, such as C:\batch, and some simply drop   
   >> their batch files into C:\Windows or one of its subfolders. It doesn't   
   >> matter.   
   >>   
   >> Wherever you decide to put it, create a shortcut in the Start->   
   >> Programs-> Startup menu so that it gets executed after you login to   
   >> Windows. (There are other ways of auto-executing a program upon login,   
   >> but that's the easiest.)   
   >>   
   >> The problem you're running into now is that autoexec.bat isn't used by   
   >> Windows 7, so your batch file isn't being executed.   
   >   
   >The name of my batch file is "Aliases.bat" and it's in the "Bin"   
   >subdirectory of my login directory. How do I go about creating "a   
   >shortcut in the Start->Programs->Startup menu so that it gets executed   
   >after" I login?   
   >   
   >I tried clicking All Programs->Startup> and then right   
   >clicking on and selecting . Doing that caused a   
   >little window to pop up labeled "Startup Properties", that had six   
   >tabs, , , , , Versions>, and . I took a look at all of them, and none of   
   >them looked like it had anything to do with creating a shortcut for my   
   >".bat" file so that it gets executed after I login.   
   >   
   >I also tried right clicking on "Aliases.bat" itself, in my version of   
   >Windows Explorer, right clicking, and selecting ,   
   >which _did create_ a shortcut file. At that point I copied that   
   >shortcut to "\AppData\Roaming\Microsoft\Windows   
   >\Start Menu\Programs\Startup", and then I shut down my laptop and   
   >brought it up again, and then when I brought up a command prompt I   
   >typed "m autoexec.bat", where "m" is my alias for "more", and got the   
   >message "'m' is not recognized as an internal or external command,   
   >operable program or batch file."   
   >   
   >If someone could explain how I can get my shortcut into the    
   >menu, I'd really appreciate it!   
      
   The easiest way is to simply drag the shortcut into the Startup   
   folder. Start orb, All Programs, Startup.   
      
   A totally different alternative is to fire up the Windows Task   
   Scheduler, click to create a new task, tell it to run at every login,   
   and tell it where your file resides.   
      
   Of course, before proceeding, you should manually test the   
   functionality of your batch file. Execute it by double clicking the   
   shortcut you created, then open a new Command prompt window. Do your   
   aliases show up? If so, either of the methods above should work, but   
   if not, then you have a different problem and neither of the methods   
   above will help.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|