1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Make a scheduled batch file, from a batch

Discussion in 'Windows XP' started by Ph4te, 2006/04/17.

  1. 2006/04/23
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    rsinfo

    You may find some of these other Environmental Variables useful also:

    MS DOS
    %APPEND%
    %BLASTER%
    %COMSPEC%
    %COPYCMD%
    %DIRCMD%
    %DOSSHELL%
    %MSDOSDATA%
    %NO_SEP%
    %PATH%
    %PROMPT%
    %TEMP%
    %TZ%

    MS WINDOWS
    %CMDLINE%
    %COMPUTERNAME%
    %TMP%
    %winbootdir%
    %windir%
    %WINPMT%

    MS WINDOWS NT
    %ALLUSERSPROFILE%
    %APPDATA%
    %CD%
    %CMDCMDLINE%
    %CMDEXTVERSION%
    %COMMONPROGRAMFILES%
    %DATE%
    %ERRORLEVEL%
    %HOMEDRIVE%
    %HOMEPATH%
    %HOMESHARE%
    %LOGONSERVER%
    %MORE%
    %NUMBER_OF_PROCESSORS%
    %OS%
    %PATHEXT%
    %PROCESSOR_ARCHITECTURE%
    %PROCESSOR_IDENTIFER%
    %PROCESSOR_LEVEL%
    %PROCESSOR_REVISION%
    %PROGRAMFILES%
    %RANDOM%
    %SESSIONNAME%
    %SYSTEMDRIVE%
    %SYSTEMROOT%
    %TIME%
    %USERDOMAIN%
    %USERNAME%
    %USERPROFILE%
     
  2. 2006/04/23
    rsinfo

    rsinfo SuperGeek Alumni

    Joined:
    2005/12/25
    Messages:
    4,076
    Likes Received:
    178
    surferdude2, thanks a lot for that extensive environment variables listing. I am sure many others would find it valuable too.

    In particular, I am interested in backing up some folders from a Win2k and a Linux domain server onto a workstation, everytime the workstation boots up (usually once in the morning @around 8 in the morning) without any human intervention. I was hoping a batch file would do the trick instead of some other add-on program.
     

  3. to hide this advert.

  4. 2006/04/24
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    You can do what you want very easily by just using a batch file and xcopy "source path" "destination path ".
     
  5. 2006/04/28
    Ph4te

    Ph4te Inactive Thread Starter

    Joined:
    2006/04/17
    Messages:
    9
    Likes Received:
    0
    quick Q

    I know there is a forum else where regaurding this but i was alreayd here... :rolleyes:
    and Autorun.inf should look like this correct?
    ----------------

    [autorun]
    open=blahblah.we

    -------------------

    now if i place blahblah.we and the autorun.inf onto a CD, it should autorun blahblah.we?

    Also, whats the command to eject the CD from dos?
     
    Last edited: 2006/04/28
  6. 2006/04/28
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
  7. 2006/04/29
    Ph4te

    Ph4te Inactive Thread Starter

    Joined:
    2006/04/17
    Messages:
    9
    Likes Received:
    0
    Sw33t thanks...but after researching the whole ejecting the CD deal, it seams you can't do it w/o some thrid party program....havent found anything helpful so far....anybody got answers?:confused:
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.