A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Windows Vista File Management
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Windows Vista File Management Issues or questions in relation to Vista's file management. (microsoft.public.windows.vista.file_management)

Solution: Opening 15+ files, or multiple file types, simultaneously in Vista



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old October 17th 08, 09:06 PM posted to microsoft.public.windows.vista.file_management
ananda6359[_2_]
external usenet poster
 
Posts: 1
Default Solution: Opening 15+ files, or multiple file types, simultaneously in Vista


The system shell for Windows Vista has been purposely built by Microsoft
such that ...


- When files of various types are selected simultaneously, the option
to open them is made inaccessible to the system shell, whether through
their context menu or the keyboard (i.e., pressing {Enter}). This is
governed by file extensions, not by the program handling the files
(e.g., it occurs when *.doc and *.docx files are simultaneously
selected).

- When more than 15 (i.e., 16 or more) files of the same type are
selected, the same event occurs.

This is documented by Zack Robinson, a Microsoft senior developer, in
the post
http://www.vistax64.com/vista-music-...tml#post749024.

Here's a workaround that solves both problems and places the solution
in the context menu.

It requires only creating a Visual Basic script and creating a shortcut
to it in the Send To folder.

2
- Create or download the script attached to this post (code posted
below):


Code:
--------------------
on error resume next

nl=vbcrlf
wait=200

set shell=wscript.createobject("wscript.shell")
set filesystem=createobject("scripting.filesystemobjec t")

set scriptfile=filesystem.getfile(wscript.scriptfullna me)

stamp=scriptfile.datelastmodified
stamparray=split(year(stamp)&"."&month(stamp)&"."& day(stamp)&"."&hour(stamp)&"."&minute(stamp)&"."&s econd(stamp),".")
version=stamparray(0)
for loopversion=1to ubound(stamparray)
versionlength=len(stamparray(loopversion))
if versionlength2 then stamparray(loopversion)=string(2-versionlength,"0")&stamparray(loopversion)
version=version&"."&stamparray(loopversion)
next

set contents=filesystem.opentextfile(wscript.scriptful lname,1)
contents=split(contents.readall,nl)

unit=4^5

set files=wscript.arguments
if files.count1 then
do
wait=inputbox(nl&nl&"Set a period, in milliseconds, to wait while files open:",filesystem.getbasename(scriptfile)&" v"&version&" : "&int(scriptfile.size/unit)&"k"&(scriptfile.size/unit-int(scriptfile.size/unit))*unit&"b : "&ubound(contents)&" lines",wait)
if wait=empty then wscript.quit
if isnumeric(wait) then exit do
loop
set scriptfile=filesystem.createtextfile(wscript.scrip tfullname)
for loopcontents=0to ubound(contents)
newline=contents(loopcontents)
if instr(newline,"wait=")0 and isnumeric(replace(newline,"wait=","")) then newline="wait="&wait
scriptfile.write(newline)
if loopcontentsubound(contents) then scriptfile.write(nl)
next
else
for each file in files
shell.run """"&file&""""
wscript.sleep wait
next
end if
--------------------


- Create a shortcut to it and place the shortcut in your Send To
folder. If you can't find your Send To folder, press Windows+R and
run "shell:sendto".

Now, when you right-click on a file or files, choosing the (for
example) "0_file_execution" entry in the Send To list will open all
selected files.

Running the script directly, instead of passing it files as arguments
from the Send To list item, allows you to set the amount of time that
separates the opening of each file; if you set this value too low, Vista
may fail to open all files.


+-------------------------------------------------------------------+
|Filename: 0_file_execution.vbs |
|Download: http://www.vistax64.com/attachment.p...achmentid=7358 |
+-------------------------------------------------------------------+

--
ananda6359
  #2 (permalink)  
Old December 29th 09, 09:54 PM posted to microsoft.public.windows.vista.file_management
Berbe
external usenet poster
 
Posts: 2
Default Solution: Opening 15+ files, or multiple file types, simultaneously in Vista


Hello,

Some news and a question about Seven (which based itself on Vista).

*1°) Opening multiple filetypes at once*
Opening different filetypes simulteanously seems to be possible in
Seven, if there similar key names in the registry.
For example, in HKCR/filetype_details/shell/, if you have same key
names for both filtypes, the option will appear in the context menu.

Moreover, it works even if the default string of the keys are
diffferent. The chosen default string is the one from the first filetype
appearing when browsing the filetypes list sequentially.

I tested that with audio files and context-menu entries from VLC, with
a .flac file and a .mp3 file.
Tested configurations:
-Different keys-
_flac:_ PlayWithVLCBlip
_wmv:_ PlayWithVLC
-- Context-menu entry not appearing

-Same keys, same default string-
_flac:_ PlayWithVLC, default string: 'Play with VLC'
_wmv:_ PlayWithVLC, default string: 'Play with VLC'
-- Context-menu entry 'Play with VLC'

-Same keys, different default strings #1-
_flac:_ PlayWithVLC, default string: 'Play with VLCBlip'
_wmv:_ PlayWithVLC, default string: 'Play with VLC'
-- Context-menu entry 'Play with VLCBlip'

-Same keys, different default strings #2-
_flac:_ PlayWithVLC, default string: 'Play with VLC'
_wmv:_ PlayWithVLC, default string: 'Play with VLCBlip'
-- Context-menu entry 'Play with VLC'

*2°) Opening 15+ files*
It seems that the problem is still there... Did you guys know more
about that?
Such old ages limitations are so annoying!

Bye


--
Berbe
  #3 (permalink)  
Old December 29th 09, 09:54 PM posted to microsoft.public.windows.vista.file_management
Berbe
external usenet poster
 
Posts: 2
Default Solution: Opening 15+ files, or multiple file types, simultaneously in Vista


Hello,

Some news and a question about Seven (which based itself on Vista).

*1°) Opening multiple filetypes at once*
Opening different filetypes simulteanously seems to be possible in
Seven, if there similar key names in the registry.
For example, in HKCR/filetype_details/shell/, if you have same key
names for both filtypes, the option will appear in the context menu.

Moreover, it works even if the default string of the keys are
diffferent. The chosen default string is the one from the first filetype
appearing when browsing the filetypes list sequentially.

I tested that with audio files and context-menu entries from VLC, with
a .flac file and a .mp3 file.
Tested configurations:
-Different keys-
_flac:_ PlayWithVLCBlip
_wmv:_ PlayWithVLC
-- Context-menu entry not appearing

-Same keys, same default string-
_flac:_ PlayWithVLC, default string: 'Play with VLC'
_wmv:_ PlayWithVLC, default string: 'Play with VLC'
-- Context-menu entry 'Play with VLC'

-Same keys, different default strings #1-
_flac:_ PlayWithVLC, default string: 'Play with VLCBlip'
_wmv:_ PlayWithVLC, default string: 'Play with VLC'
-- Context-menu entry 'Play with VLCBlip'

-Same keys, different default strings #2-
_flac:_ PlayWithVLC, default string: 'Play with VLC'
_wmv:_ PlayWithVLC, default string: 'Play with VLCBlip'
-- Context-menu entry 'Play with VLC'

*2°) Opening 15+ files*
It seems that the problem is still there... Did you guys know more
about that?
Such old ages limitations are so annoying!

Bye


--
Berbe
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2024 Vista Banter.
The comments are property of their posters.