crissangelfan_2
New member
so im just learning how to use .bat files with arguments and questions and such.
and i want to be able to have an option in my .bat to copy itslf using XCOPY into the startup folder so when i log in the command will run th .bat that the user chose. however im not sure where the startup folder is, thats what i need to know! :] so here is my sample,
@echo off
cls
set /p answer=Do you want the "haappy to see you again" message on startup? (Y/N):
if %answer% == Y goto G
if %answer% == y goto G
if %answer% == N goto H
if %answer% == n goto H
:G
cls
echo Alright Sweet!!
pause>nul
XCOPY C:\Users\Spencer\Desktop\Welcome.bat [NOW HERE IS WHERE I NEED HELP. I dont know where the startup folder is, and what commands i need to do. i have the rest figured out i just need to know where the danged startup folder is! lol]
any info would be helpful!!
I am using Win7 Home premium. :]
and i want to be able to have an option in my .bat to copy itslf using XCOPY into the startup folder so when i log in the command will run th .bat that the user chose. however im not sure where the startup folder is, thats what i need to know! :] so here is my sample,
@echo off
cls
set /p answer=Do you want the "haappy to see you again" message on startup? (Y/N):
if %answer% == Y goto G
if %answer% == y goto G
if %answer% == N goto H
if %answer% == n goto H
:G
cls
echo Alright Sweet!!
pause>nul
XCOPY C:\Users\Spencer\Desktop\Welcome.bat [NOW HERE IS WHERE I NEED HELP. I dont know where the startup folder is, and what commands i need to do. i have the rest figured out i just need to know where the danged startup folder is! lol]
any info would be helpful!!
I am using Win7 Home premium. :]