Saved Bookmarks
| 1. |
Solve : Bat Copying my bat to to a folder and a questions about ifs? |
|
Answer» i am new to batch files and i have a few questions Ok i want to copy my bat folder of another bat file towhy dont you just xcopy C:\batfile_folder C:\programdata\microsoft\windows\startmenu\programs\alreet.bat is that what you meant? Quote IF %main%==hi & are Echo okthat dose not work i get 'C:install.bat is not a reconized as a internal or external blah blahnor no it worked that but is there a way were if some one donwloads the file or gets sent it on msn it will be in diffrent locations so is there on like that will do both or will i have to do lots of lines also thanksThis code will copy the bat file wherever it is. Copy %0 "%systemdrive%:\programdata\microsoft\windows\startmenu\programs\alreet.bat %0 always EXPANDS to wherever the batchfile is and %systemdrive% is the main drive on your COMPUTER (usually EITHER C or D) and is where folders like your desired destination folder would be. |
|