Create A Shortcut To A *.bat Batch File In The SAME (unknown) Folder?
Sep 21, 2011
I have written a batch file (e.g.aaa.bat) which can take several paramters and runs fine as long as I enter the start command at the command prompt e.gaaaa.bat -start -logIn order to avoid always having to enter manually this command I created a shortcut to this batch file and placed it in the SAME directory and added once the desired parameters. The shortcut properties look like now:Target: D:proj2 est2011aaaa.bat -start -logStart in: D:proj2est2011This works fine as well. Now the problem comes: I want to make these batch file and its shortcut portable.That means users should be abel to copy both files (batch + shortcut) on their computer in an indiviual different directory and be able to start the shortcutted batch file WITHOUT adjustments as well.
BUT this does not work because "Target" and "STarted in" most problably have a different path (e.g. C:evalproj ask23).My first approaches to solve this problems were to omit the path like in:Target: aaaa.bat -start -logStart in: .But this does not help. If I try to apply the settings above for the shortcut I got an error popup:"The name aaa.bat' specified in the target box is not valid"Hmm, how do I specify in the shortcut=SAME DIRECTORY AS CURRENT SHORTCUT FILE otherwise?
I am trying to create a batch file that runs 3 other batch files. Right now, it works fine using the call command on each other batch file. However, these other batch files take awhile to run. and so the entire process takes a very long time, since each "sub" batch file is run only after the previous one is finished.I was wondering if there is a command or way to start a batch file fro the top-level batch file, then go on and start the next batch file before the previous one is finished. In other words, I want the sub batch files to run in parallel in the background. (similar to the '&' in Unix).
How to create a batch file that will move files based on the file type?My Requirement : I need a batch file to copy all .doc files in all my HardDisk to aremovable disk say (Z: drive) . Can anyone make it possible using a batch file
What I want to do is a batch file or program so that when you open it, it mimics key presses Alt+Tab. Or at least tell me where's the Flip2D program locationI need it because I want my Synaptics touchpad to open it (this program) when a I press the upper left corner.
I am using this command: Code: mount -u:root -p:[password] \216.17.1.125srvwwwhtdocs g: at the command line to mount an NFS-enabled network drive from my Windows 7 machine.
I need to know what I need to put in a batch file (which will be put in my Startup folder), so the drive is automatically mounted at login/startup.
I tried just putting the line above in a batch file, but that didn't work.
System Info Utility version 1.0.0.1 OS Version: Microsoft Windows 7 Home Premium, Service Pack 1, 64 bit Processor: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, Intel64 Family 6 Model 30 Stepping 5 Processor Count: 4 RAM: 8190 Mb Graphics Card: ATI Radeon HD 4600 Series, 1024 Mb Hard Drives: C: Total - 114370 MB, Free - 71446 MB; D: Total - 953866 MB, Free - 821189 MB; E: Total - 99 MB, Free - 70 MB; F: Total - 476837 MB, Free - 396929 MB; Motherboard: ASUSTeK Computer INC., P7P55D, Rev 1.xx, 101697990000924 Antivirus: Microsoft Security Essentials, Updated and Enabled
I have started getting message box titled "MTxfr" which states, "Could not create file mapping object(5)" I can click the OK or just close it but I want to know what it is and why I'm getting it.
I need to access files (via Windows 7) that were saved in XP mode. To do this, I thought I would create a Windows Explorer shortcut in Windows 7 that pointed to the XP mode environment. The shortcut creation method doesn't seem to work for non-application shortcuts. How can I access (in Windows 7) or move files (to Windows 7) that are created in XP mode? I have a Canon camera that uses an XP only utility to communicate with the camera. The files are moved from camera to XPM environment. I need to work with the files in Windows 7.
Hope I can explain my difficulty. I have duplicated folders album name for all my music files, As there is quite a considerable number I wondered if it was possible to batch file (automate) the process. I can not delete "d" as this would delete all the tracks. What I need to do is move the tracks at "e" into folder "c" and delete the then empty folder "d" Folder structure.
I have a computer that is a drone specifically for an outside LED sign. This computer is designed to never shut off and doesn't have any other program on it besides Operating System and the sign software. I need to create a batch file that I can place in the "start-up" folder that will open the program (LEDStudio10) and open the file that I want to play. I have already tried multiple attempts and I was hoping someone out there in sevenforums world would be able to point me in the right direction.
I just downloaded all of the Google Web Fonts and they were each downloaded into their respected folders, so instead of clicking on folder after folder and right clicking after right clicking and finally installing each and every font;
How can I create a command prompt (batch) file so the prompt can search the main folder where all the font folders are, grab any and all TrueType Font files and move or copy them into another single folder?
I have a folder with around 2000 files in it. I want to be able to copy certain files from this folder (normally around 40) and place them in a brand new folder, I want to be able to do this with nothing more than a txt file that has all the file names I need copying in it with every file name on a separate line.I receive around 10 new txt files each day so you can imagine how tedious it is searching through 2000 files, picking out the 40 I need, times a day everyday.To make things even more complicated, the txt files I receive don't always have the correct file names in them, maybe there's a misspelling or a word or two missing for some of the names. That's ok when I'm going through picking out the files I need to copy myself because I can normally tell which file is being requested, but I can't see it being so easy for a program or whatever to do, I'm guessing it'll need to have a search feature where it picks out the most likely file.I'd like it to be as automated as possible. I receive the txt file, make sure each file name is on a separate line then a program or script or whatever goes out and picks out the files (or most likely files for the name's that aren't exact matches) and copies them into a brand new folder (which I'd like to be the same name as the text file it's using to choose the files).
Trying to create a batch file for Windows 7 to run a command (elevated ) in command prompt?User: is an administrator or in administrator group ( but actual administrator account may be disabled )essentially need to be able to double click the *****.bat filehave it open up cmd in elevated ( run as administrator ) , run the command in the dos window and reboot the computer.
I'm trying to move a file from my desktop to a folder on my Hard Drive (Internal) but everytime i attempt to do this it says, "Window's Can't Create a Shortcut here, do you want the shortcut to be placed on the desktop instead?". This have never happened to me before and frankly I'm a little perplexed at why this is happening.
I wanted to create a TXT file under the WINDOWS folder and the only thing on the context menu was FOLDER.I get the same context menu for any folder under the windows folder.
I often have to create Shortcuts to executable code. I used Shortcut Extension - Remove or Restore to get Code: SED.exe instead of the Windows 7 default Code: SED.exe - Shortcut as name of the newly created shortcut.
But I would prefer to have just 'SED'. Any way to do this automatically?
I think it might matter that I do not hide extensions ['Hide extensions for known files' (Option in Explorer -> Tools -> Folder Options... -> View)].