How to Change File Permissions on Windows 7. Permissions in Windows 7 determine which users can access, modify, and delete files and folders. Every file and folder on.I have Chrome associated with.xlsx file on a Windows 8.1 machine In Control Panel\Programs\Default Programs\Set Associations it is not possible to remove an. Is there an easy way to programmatically determine the number of lines within a text file? · I cannot believe I can't do this simply in windows 2000. How can I lookup a process id in windows 2000 using tlist if I cant find out the process that is. ![]() Create A Batch File To Open Multiple Programs At Once. Ever have the need to open more than one program or application at the same time? Say it's the beginning of the month and time to pay those dreaded bills. You know you need Excel, Windows calculator and Firefox or Internet Explorer open. Instead of opening them up one by one, you can easily create a batch file that will open all three programs at once. And while your at it, why not have Excel open the spreadsheet file you use for tracking your budget and the browser open to your Bank's home page. Here's how to do it…First let's take a look at a batch file I created that will just open Excel, Calculator and Firefox: NOTE: Examples and file paths are from Windows Vista. XP paths will probably be different for some programs as well as for MS Office (Office 2. C: \Windows\System. C: \Program Files\Mozilla Firefox" firefox. C: \Program Files\Microsoft Office\Office. EXCEL. EXEPretty simple. The above command, start tells Windows to open a separate window to run the specified program. The /d switch tells start command the path of the program. For starting Excel and Firefox, notice that the paths are in quotes, which is needed when there is a space in the file path. Now it's great that all three programs open, but since it's time to pay your bills, you need to have Excel open that budget spreadsheet and Firefox open to your Bank home page so you can log on and access you checking account. Here's how the commands look in the batch file to do this: start /d C: \Windows\System. C: \Program Files\Mozilla Firefox" firefox. C: \finance\spreadsheets budget. To open Bank Of America home page with Firefox, just add the URL to end of the command as shown above using https: //www. To open the Excel spreadsheet, budget. Excel. budget. xls can be opened directly using the start command, as long as the extension or file type is associated to the program. If you need Firefox to open more than one URL, say to Google, just add the URL like this (make sure you use a space in between URL's): start /d "C: \Program Files\Mozilla Firefox" firefox. Now you're probably saying "that's great, but how do I create a batch file?". That's the easy part. Just open up Notepad or your favorite text editor. Copy the commands from above and modify them to use which ever program or Office files you want open. Make sure when you copy file and folder paths that have spaces, to use quotes. Then save the file with any name and a . Now when you want to open up multiple programs or applications, just double click on the batch file and you're ready to pay the bills (if I can only figure out how to get the calculator to open with a million dollars from my checking account….). TIP: What if you only wanted to open up some applications, but you still want to have your most used applications available in a list? Check out how to create a batch file that opens applications you choose from a list. How Windows Determines That the File Has Been Downloaded from the Internet. In one of the previous articles, we mentioned that when trying to open an executable file downloaded from the Internet Windows shows a security warning of running a potentially dangerous content (For details, see How to Disable Security Warnings in Windows). How does the system determines that the file has been downloaded from the Internet? Let’s try to find it out. All executable files downloaded from the Internet in a browser get a special marker. This rule is supported not only by Internet Explorer, but also by other popular browsers, like Mozilla Firefox and Google Chrome. When copying, renaming or moving a file to another NTFS partition, the marker still stays along. This marker is an alternative NTFS file stream. Note. The alternative NTFS data streams allow to create several extra data (metadata) streams for each NTFS file. By default, all file data are stored in the main stream, but it is possible to create for a file one or more additional streams and their size may even exceed the size of the primary file streem. The majority of applications (including Windows Explorer) work only with the standard stream and cannot read data from the alternative NTFS data streams. To make sure that a special marker has been assigned to a file downloaded from the Internet, display the list of files for the directory containing distributions using the following command: dir /r. As we can see, the alternative stream Zone. Identifier has been assigned to the executable files, like install_flash_player_1. Zone. Identifier. Open the alternative stream in Notepad: Notepad. Zone. Identifier. We can see that this stream is a file containing a section [Zone. Transfer], in which a transfer zone ID (Zone. Id) is specified. These are the security zones that can be found in IE settings.) The transfer zone ID can contain one of the five values from 0 to 4. Zone. Id=0: Local machine. Zone. Id=1: Local intranet. Zone. Id=2: Trusted sites. Zone. Id=3: Internet. Zone. Id=4: Restricted sites. When you download a file from a security zone, a browser assigns a corresponding Zone. Id to it. When trying to run a file with Zone. Id equal to 3 or 4 in its alternative NTFS stream, based on this ID the system detects that a file has been downloaded from the Internet or an untrusted source. Windows has been checking this marker of executable files since Windows XP SP2. To delete this marker (the alternative stream) manually, you should only click Unblock in the file properties. Make sure that this file doesn’t have the alternative stream now. Tip. To prevent assigning markers to the downloaded files, you can save the files downloaded from the Internet to a file system different from NTFS, like FAT, ex. Fat, etc. Actually, Windows doesn’t have any tools to deal with the alternative data streams. For instance, if you have to delete them from a number of files at once, you’d better use a third- party console tool by Mark Rusinovich — streams. For example, to recursively delete the alternative streams of all executable files in c: \Download\, run this command: c: \TOOLS\streams. Download\*. exe. In the command prompt, you can see that the alternative stream of a file has been deleted: Deleted : Zone. Identifier: $DATA Important. Streams deletes all alternative streams of the specified files and doesn’t allow to target a certain stream. So, do not run the streams command as streams. NTFS streams has been deleted. In Power. Shell 3. Zone. Identifier stream in a directory using this command: Get- Child. Item - Recurse | Get- Item - Stream Zone. Identifier - Error. Action Silently. Continue | Select- Object File. Name. In Windows Power. Shell 4. 0, you can delete Zone. Identifier using a separate cmdlet: Since there is no stream, the system prompts to create a new file. Agree and copy the following text to the Notepad window: Save the changes. Make sure that an alternative stream has been assigned to the file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |