Jump to content

donvier

Member
  • Posts

    6
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by donvier

  1. after much searching i was able to figure it out. Thanks guys!!
  2. I am trying to create a local user on an XP/2003 machine and set the "Password does not expire" option to checked. is there any way to do this through batch instead of using VBScript? something like net accounts /maxpwage:Unlimited except with the ability to narrow it down to a user. Any ideas? Thanks!
  3. i had one file in one location and right now it is going to run as a scheduled task grab a copy of the file and put it in a month/day directory named date time.txt this will work for what i was looking for. really i just wanted to grab a copy of the file, move it to another directory and make it so the next time the file runs it doesnt overwrite the last one. i appreciate the help though. one thing i have no clue about is what the #,# is after the date and time, that part i got from someone else.
  4. Thanks for the help guys! I do believe i have something that will do what i need now. without the pauses of course. if you cant tell this is pretty much my first batch file ever so any tips other than "you're an id***" are more than welcome lol. cd\ mkdir "C:\Documents and Settings\user\Desktop\batchcopydestinationtest\%Date:~-10,2%_%Date:~-7,2%_%Date:~-4,4%" pause copy "C:\Documents and Settings\user\Desktop\batchcopytest\cu0169" "C:\Documents and Settings\user\Desktop\batchcopydestinationtest\%Date:~-10,2%_%Date:~-7,2%_%Date:~-4,4%\cu0169" pause rename "C:\Documents and Settings\user\Desktop\batchcopydestinationtest\%Date:~-10,2%_%Date:~-7,2%_%Date:~-4,4%\cu0169" %Date:~-10,2%_%Date:~-7,2%_%Date:~-4,4%_%time:~-2,8%.txt pause exit
  5. I am trying to capture/archive multiple versions of a file with the same name without having the destination overwritten everytime. I was thinking of doing something that checks to see if the file exists and if it does add a numerical number or something at the end. i tried to add $date$ to the file name to keep it unique but the date format is mm/dd/yyyy which windows doesnt like because of the / in the file name. how else could i do this in order to make it completely automated. This will be on an XP Pro or 2003 box and i am stuck with the programs on the box, cannot install 3rd party products. I can get the file to copy and all that good stuff it just keeps overwritting the destination file. i cannot rename the file prior to the move because another program that will run shortly after depends on it. i want to get a snapshot of this file prior to the other program kicking off. i looked at xcopy but all i see is the ability to have it prompt to overwrite. any help will be appreciated. thanks in advance.
×
×
  • Create New...