a batch file that create folder n delete old

Microsoft Windows xp professional w/serv...
December 22, 2010 at 06:30:53
Specs: Windows XP
Hi dear i dont have much experience in batch file writing but from forums i dig some code, and try to mold it according to my requirments but after beating head could not get the proper result so comes in front of you people to please help me. as initial code of my baby file is this

@echo off

md C:\tempbackup\DAY_%DATE%
//md C:\DAY_%DATE%

Create shortcut -f -t C:\tempbackup\DAY_%DATE% -n "\Documents and Settings\eric\Start Menu\Proams"

using this code, it create folder and one file on desktop as well, but it is not a shortcut it is just a file with name as of in Tempbackup folder.

basiscally i want like this
1) I want to create the folder shortcut on desktop of file created in Tempbackup folder
2) this bat file on execution will also delete one day old shortcut from the desktop

so when i schdule this file to run. it run n create folder in specified folder but not shortcut or create shortcut without path. when i click on shortcut it ask me how to open this file. so its not a proper shortcut or not a proper path.
as I consider it right to mention here, that there is no other shortcut on desktop other i want to create so any option of delete will work fine.
please help me as you people can help..................

See More: a batch file that create folder n delete old

Report •

December 22, 2010 at 13:20:45
For more help this query should be posted here:


Report •
Related Solutions

Ask Question