Record of creating file batch but the need to create a shortcut on the desktop and remove shortcut a day of age

Hi dear I have not much experience in batch file writing but forums I dig a code and try to shape according to my requirments but after beating head couldn't get the correct result comes in front of you people help me please. file code of my baby
off @echo
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 a folder and a file on the desktop as well, but is not a shortcut, it is just a file by name as the file Tempbackup.
Basically, I want like this
(1) I want to create the shortcut from the folder on the desktop of the file created in the folder Tempbackup
(2) this file beats on execution will also remove old one day from the desktop shortcut
so when I see this file to run. n IT run create the file in the specified folder, but no shortcut or create a shortcut without a path. When I click on the shortcut, it ask me how to open this file. so it's not a good shortcut or not a correct path.
as I think that it good to mention here, that there is no other shortcut to other desktop I want to create so all DELETE option works perfectly.
Please help me like you people can help...
Eric
ericcisco

 

Hello

Try these steps-
Create the shortcut proposed (to cmd.exe/c start)
Now, open properties such as proposed
Add the full path in the 'Target' field with your own relative path and the app, for example
%windir%\system32\CMD.exe /c start your_relpath\app.exe [your_args]

That's all. However, doing so does not change the current working of the called program directory. If this is desired, then enter the following alternative:
%windir%\system32\CMD.exe /c "cd your_relpath & start app.exe [your_args].

The & is described as a command separator (see cmd /?). Note: Put something like '% CD%\your_relpath\' in the field ' start in ' doesn't do anything.

You can try this as well-
Create .bat file close record/yarn that you want to have the relative path
Edit the file, and the file type: (as you want to open c:\bin\app.exe, and then place file beats in c:\run.bat)
Departure bin\app.exe
Save the run.bat file and double-click it to open it.

Tags: Windows

Similar Questions

  • Lightroom on iPad pro w/30 day trial, but the desktop version is only 7 days...

    I downloaded both and then went away on summer vacation for... 10 days. So, how do the trial of lightroom on iPad without the desktop version?

    I have never used lightroom before and is considering the passage of the opening on the desktop and try to go mobile!  Any thoughts?

    People use the mobile version of himself? Thank you!

    Lightroom on iPad is real the mobile application called Lightroom Mobile - very different from the desktop version.

    Adobe Lightroom for FAQ mobile

    The desktop version of Lightroom is the complete software and Adobe recently brought all trial periods software cloud from 30 days to 7 days.

    People use the mobile version of himself? Thank you!

    Yes, since you can now get free Mobile Lightroom but your workflow will be different compared to the synchronization between Lightroom Mobile and desktop Lightroom.

    Lightroom mobile app for iOS is now a free stand-alone image editor for everyone

  • Windows XP SP3: Unable to start, System Restore cannot drag and drop ALL the files/folders on the desktop and applications, many unable to start, services cannot search, cannot copy or transfer the any files folders...

    After a recent power outage, my system has restarted with a weird and very common Windows problems range. The system boots fine, all my personal files/folders/apps are intact, have suddenly stopped almost all functions of applications, but many crucial functions of the Windows kernel. Everything seems to point to several Windows Services are unable to start (administrative tools on the start menu). I am running Win XP SP3 and that he was going to upgrade to Windows 7, but I wanted to backup everything in advance. As I have 29 000 hours on my C: drive and a lot of time invested in my system, files, and applications, I am extremely reluctant to risk losing my files and applications by performing any type of reinstalling Windows. Strangely, begin to almost all my apps and all my files are accessible for the most part, but I've lost the ability to drag and drop files, folders or items in a list within the applications COMPLETELY. I can't copy or paste anything, can't move the desktop icons (although I can create new files and folders). So at the moment I can't save anything or even a single file transfer to a hard drive on another storage medium. Immediate reaction: try safe mode and try the system restore safe mode has the same problems (likely due to the large number of system services that inexplicably refuses to start) and the system restore says an error window saying "system restore is not able to protect your computer at this time. try restoring the system running and restart again", which of course NEVER changes. It's the equivalent of getting a tire on your car in the middle of nowhere to find the spare tire flat and the missing Jack. I have used to be fanatical about the definition of the regular restore points, but now can not access them. I have backups of most of my personal files, but over years have lost most of the original installation CD for many of my applications (there are over 100 applications on my system) and I don't want to lose the file associations and architecture of directory tree that it took my so long to implement. I started with Win XP media center edition of first (circa 2004 or almost) and have migrated twice more of 3 hard disks and 2 computers. All this time (5 years of daily use), I have NEVER known so many malfunctions for as many Windows basic and vital functions at the same time. I tried a lot of 3rd party "windows fix - it / registry repair" apps, all have no effect. Everything I can speculate is there was some serious damage to the registry and have no idea how/why so many Services refuse to start. In MMC, more than half of the services actually start and run, the rest all give the error message "the service or dependencies is not start (error 1068).» In addition, very oddly, no. APPS or windows appear in the toolbar AT ALL, but the Quick Launch toolbar works very well, just like the tray button and start tasks (?! )!). If I reduce a window, it "disappears" (Nothing on the task bar), but I can restore it using the alt - tab keyboard shortcut to switch apps, so all applications/windows appear on the list of the Task Manager. A few apps is paralyzed bad, as the player windows media, itunes, etc. (I guess because the service windows audio can not not start), some won't start at all, but 90% of them work fine, except to try to copy or back up all files. I can create new files, however. I'm desperate to find a solution to repair XP3 Win WITHOUT losing my installed applications and files, before I try and switch to WIndows 7. Any help/suggestions/links/advice would be much appreciated. I'm an experienced user, but I've never met so many malfunctions based on the OS at a time. I, however, very painfully learned (years before that my system so complex) it's been almost a re-installation of Windows guarantees to lose my installed apps and files, the directory tree architecture associations.

    Help, please!

    I'll be honest with you - your message is so difficult to read that I don't bother to go through all that. Next time consider using white space, ball or points numbered, etc. to make your message more readable. I stopped reading after your first sentence and only scanned the rest quickly. I do not mean to hurt your feelings; just trying to help you get targeted answers you need for the future.

    The blackout has corrupted your Windows installation. Back up your data now. Since you have problems so much, it would be probably best is to remove the hard drive, put it in a USB drive enclosure and attach it to another computer to copy the data OR start the target with Linux Livecd such as Knoppix system and copy the data to an external hard drive. IOW, do not use the damaged windows to try to get your data.

    You can try a repair that will leave your programs and facility data intact, but with this widespread bribery, it is unlikely to work. However, it takes only a few minutes and is so worth a try. If the repair facility does not work there is nothing to do, but a clean install. And Yes, it will mean that over again.

    Consider buying a UPS to help prevent future damage by power outages. For a single computer, you should look for one in the area of $60 to 80. A more expensive UPS is not necessary. Another good disaster recovery strategy is to buy an external hard drive and Acronis True Image. You can image your system (and can make an incremental backup image so that your image is still current). You can apply your image and be back running that you were in relatively few minutes after a hard drive or Windows to fail.

    http://www.michaelstevenstech.com/XPrepairinstall.htm - repair install how-to
    http://michaelstevenstech.com/cleanxpinstall.html - Clean install - how-to
    http://www.elephantboycomputers.com/page2.html#Reinstalling_Windows - you will need at hand MS - MVP - Elephant Boy computers - Don ' t Panic!

  • I'm lookng for a product where I can produce a PDF secure for several clients.  When the document is finished, I want to fix it with a password, to make it more difficult to copy, but then I want to record in a secure location, send the link and not

    I'm lookng for a product where I can produce a PDF secure for several clients.  When the document is finished, I want to fix it with a password, to make it more difficult to copy, but then I want to record in a secure location, send the link and the password to the clients.  When customers go to download the PDF, they will have to if they accept the terms and conditions.  If it is accepted, they can download the document.  Working in DocumentCloud PDF services?  Thank you.

    Hi davidc21010281,

    You can try the DC Acrobat Adobe Acrobat download free trial | Acrobat Pro DC. Where you can create a secure PDF file (using Acrobat|) Securing PDF files with passwords) & send them to your customers (send and track online documents |) Tutorials Adobe Acrobat DC), on the other end, customers can download the PDF but they would need the password/certificate in order to open the PDF file.

    See also the FAQ of Adobe Document Cloud.

    Kind regards

    Nicos

  • There is a possibility to run Labview projects or to set them off from a batch file or if the exist and the ability to control labview or run it from an external application?

    Hi, I m a bit new in LabVIEW and I'd like to ask a few questions...

    -There is a possibility to run Labview projects or to set them off from a batch file or if the exist and the ability to control labview or run it from an external application?

    -One API PI or raspberry beaglebone exists for LabVIEW?

    -Power supply Wich can recommend you control with LabVIEW? (some chip solution witn 0 - 30v / 0 - 3A DC)

    Thank you very much for your advice!

    Best regards

    Elena

    Elena,

    I know raspberry, so no comment on that.

    For the rest:

    -Do you want to create tools for developers? If so, we must look in the API of project VI and VI server. If this isn't the case, please compile your application LV as executable and call this one using a batch file.

    -LV prefer specific supplies. LV is a programming language. There are several power supply providers (including OR) which provide directly the LV API for their power supplies. So, essentially, the approach is:

    1. choose food that serves your needs.

    2. check if the power supply has a standard interface for programming (such as Ethernet, GPIB, or if the power supply is PXI, is already providing a programming interface!)

    3. check if the LV API (so-called "instrument driver") is available for the device. In the case of a PXI system, get you a device driver (for example NI DCPower).

    4. check if the LV samples are available (for example in the Finder for example LV once you have installed the driver).

    Norbert

  • Windows error need help for files saved in the desktop computer

    After that I scanned my PC with AVG Antivirs, my OS was wrecked because of some virus, well I was able to recover the windows and she got up but all my files saved on the desktop are gone? How can I recover these files, the office very important = btw ()

    Hello

    Step 1: Make sure these files are hidden.

    Step 2: Use windows search to search for the missing files.

    Step 3: You can also check if you can see the files in safe mode and after the same return.

  • Is there something special I need to do to upgrade to Windows 7 Vista 64? I keep my icons the desktop and Favorites, etc. ?

    upgrade to Windows 7 Vista 64

    Is there something special I need to do to upgrade to Windows 7 Vista 64? I keep my icons the desktop and Favorites, etc. ?

    Just the usual if update Vista 64 for Windows 7 64-bit.

    Make sure you have a backup system and separate backups of your files user such as documents, images, videos, music, email and such stores. In addition, it is wide to ensure you have a way of rerstoring any application that you have added to the original instrall factory.

    Good luck and enjoy your new system.

    Tom Ferguson

  • I have windows vista business edition is installed on the desktop and Vista home edition on my laptop I can't access files on the laptop and vice versa, I am using a d-link adsl router can u help me solve the issues___Thanks__Peter

    I have windows vista business edition is installed on the desktop and Vista home edition on my laptop I can't access files on the laptop and vice versa, I am using a d-link adsl router can u help me solve problems

    Thank you
    Peter

    Hello

    The easiest way is with a crossover cable - a special wire to connect the two systems.
    You can get one at your local computer store - they are not expensive.

    Also check with the site of the manufacturer of your router, because they will have in-depth details on how to
    set up the network.

    ====================================

    Or you can set up a wired or wireless network.

    Setting up a network home
    http://Windows.Microsoft.com/en-us/Windows-Vista/setting-up-a-home-network

    Home network, wireless network and computer networking Made Easy
    http://www.home-network-help.com/

    Windows Vista tip: How to install and connect to a wireless network
    http://www.watchingthenet.com/Windows-Vista-tip-how-to-Setup-and-connect-to-a-wireless-network.html

    Ad-hoc networking
    http://windowshelp.Microsoft.com/Windows/en-us/help/0e158c21-4C70-4235-879d-0c9133218e561033.mspx
    Set up a computer-to-computer (ad hoc) network
    http://windowshelp.Microsoft.com/Windows/en-us/help/293c504f-b944-4d5d-835c-f080129bd5dc1033.mspx

    How to set up an Ad Hoc wireless network in Windows Vista
    http://www.home-network-help.com/ad-hoc-wireless.html

    Create an ad hoc WiFi network secure on Windows Vista
    http://www.Intel.com/support/wireless/WLAN/sb/CS-025386.htm

    Networking tutorial home
    http://www.tehnomagazin.com/computer/home-networking-tutorial.htm
    Practically networked - everything you could possibly want to know.
    http://www.practicallynetworked.com/

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • scanned the file appears on the desktop screen (Windows 7) and couldnot be removed, what should I do?

    scanned the file appears on the desktop screen (Windows 7) and couldnot be removed, what should I do?

    Hello, Hello!

    THANKS for your advice.

    I'll try to do as you recommended. And will let you know the result.

    Your helpfulness is really appreciated. Thanks again.

    Dear Morris Subba,

    This is to inform you that question pop up on my desktop PC went when I changed the color of my office.

    I don't know why, and if he'll be back once again, but for me, it's a liberation!

    Thanks for your concern and what you have done. THANKS........................................!

    Have a nice day!

    [EW] SQ

  • I can't find application webcam on my PC after formattting, but the hardware and the software is in the Device Manager

    I can't find application webcam on my PC after formattting, but the hardware and the software is in the Device Manager

    I can't find application webcam on my PC after formattting, but the hardware and the software is in the Device Manager

    You need to reinstall the driver of web cam and related demand.

  • Windows 7 icons on the desktop and start changed to dat file

    Original title: Windows 7 icons on the desktop and Start Menu problems

    I am running Windows 7 Pro with service pack 1 and all the icons on the desktop Start Menu has changed into something that resembles a dat file and when you click on it, they are trying to run a download would be and asks where I want to save them. Symantec Endpoint, Microsoft Security Essentials, or AVG will find viruses or problems with the computer. I spoke with the technology of Windows and he sent me the link to this page.
    I've never seen anything like this.

    Hello

    It can be disappointing when all the icons on the desktop and Menu start modified in a dat file. I understand the inconvenience.

    You can try to rebuild the icon cache and check if it works properly.

    Click Start, click Control Panel, and write in the box search folders options.
    b. now, click on Folder Options to open and select folders and hidden files (dot).
    c. open a Windows Explorer window.
    d. go to C:\Users\(User Name) \AppData\Local
    e. right click on IconCache.db and click on delete.
    f. click Yes to confirm the deletion.
    NOTE: This deletes the file to the trash. It is safe to empty the trash when you are done.
    g. close the window.
    h. emptying the trash.
    i. restart the computer.
    j. When you come back, you will notice the size of the file IconCache.db is reduced, and the update is now the current date.
    NOTE: If for some reason, IconCache.db isn't there or the size has not changed, then you can just restart the computer again. You may need to restart a few times in some cases.
    k. icon cache will be rebuilt.

    Hope it solves the problem. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • How to decrease the size of the PDF file without reducing the quality and links?

    How to decrease the size of the PDF file without reducing the quality and links?

    Michael and Phil,

    Your ability to reduce the file without diminishing its quality depends on the quality required for their intended use. If these are intended for viewing on screen, then high resolution pictures can be re sampled or changing the resolution without real change is the quality, as long as the user can say. Number of files use subsets of fonts or the incorporations of fonts. Sometimes you can remove subsets of fonts or embedding the fonts if the font will be on the user's system. Subsets of fonts can save space, but if the pdf is a result of several different sources, desincorporation policies and incorporating a copy of the policy can save space.

    Honestly, the size of 2 MB file is not the problem it once was. However, maybe the pdf not by e-mail at all. There are players on a server as well as a link sent to each user.

  • Yahoo password email changed computer but the iPhone and iPad can always GET mails without updating the password

    Yahoo password email changed computer but the iPhone and iPad can always GET mails without updating the password...
    Normally, it should show as 'could not load the mail' or 'impossible to download the mail' or 'Please verify your password... "
    It's really wired.

    You are probably using IMAP

    Update contained in one place - it synchronizes across devices - all as is your email

    With POP accounts, you'd see what shows your question

    Instructions on how do to vs in IMAP POP3 - IMAP

  • Is it possible to get the details of the file (for example the subject and comments) off the screen and to an Excel file or a text file without having to retype this information

    Is it possible to get the details of the file (for example the subject and comments) off the screen and to an Excel file or a text file without having to retype this information

    * original title - file details *.

    Hello

    Could you explain what is exactly? What do you mean by off the screen?

    According to my way of thinking, you want to export the file details of all your files on your HARD drive to an excel file or a txt file. If I'm right in this case, it is not possible to export the details of each & every file in the excel sheet.

  • BlackBerry Smartphones to transfer files between the desktop and Blackberry

    I'm new to Blackberry and do research on how to transfer files Notepad or Wordpad from my office to the Blackberry.

    I am an old user of Palm, and there is a built-in function of memos of synchronization between the desktop and the handheld device.

    I'm not necessarily looking for to be able to automatically synchronize these memos.  Just having the ability to transfer them back and forth between the office and the Blackberry when there are updates.

    To my office, I use Outlook (with a FranklinCovey component software plug-in called PlanPlus for Outlook) on Windows XP Professional, sync to a Blackberry Curve.

    Thank you.

    Hi and welcome to the Forums!

    See this article for how to configure your BB to function as a home (or readers) USB drive on your PC:

    Hope that helps!

Maybe you are looking for