Search found 14 matches

by Yaron
06 Jul 2017 13:47
Forum: DOS Batch Forum
Topic: Open and Select a file in an existing Explorer window
Replies: 0
Views: 7191

Open and Select a file in an existing Explorer window

Hello, I'd like to open and select a file in an existing Explorer window from the command line. explorer.exe /select, "FILE_PATH" Opens a new window. cmd.exe /c start "" "FILE_PATH" Runs the file. Is it possible to use cmd.exe /c start "" "FOLDER_PATH&quo...
by Yaron
02 Jul 2014 06:53
Forum: DOS Batch Forum
Topic: Notepad++ Open containing folder and SELECT FILE
Replies: 9
Views: 9053

Re: Notepad++ Open containing folder and SELECT FILE

Thank you. I really appreciate it.
by Yaron
01 Jul 2014 14:30
Forum: DOS Batch Forum
Topic: Notepad++ Open containing folder and SELECT FILE
Replies: 9
Views: 9053

Re: Notepad++ Open containing folder and SELECT FILE

Thanks again. It's kind of you.

I meant how to use the code in the file "shortcuts.xml".

This works:

Code: Select all

cmd /c "start /max C:\Windows\Explorer.exe /select, $(FULL_CURRENT_PATH)"


Is it possible to hide the Dos window which pops up for a second?
by Yaron
01 Jul 2014 13:16
Forum: DOS Batch Forum
Topic: Notepad++ Open containing folder and SELECT FILE
Replies: 9
Views: 9053

Re: Notepad++ Open containing folder and SELECT FILE

Thank you. I appreciate your help.

Do you know how to adapt the code to "shortcuts.xml"? I couldn't make it work.
by Yaron
01 Jul 2014 12:28
Forum: DOS Batch Forum
Topic: Notepad++ Open containing folder and SELECT FILE
Replies: 9
Views: 9053

Re: Notepad++ Open containing folder and SELECT FILE

Hi foxidrive, If posting in multiple forums is contrary to the conventional etiquette, I apologize. The following command opens the folder and selects the file. I'm still looking for a way to open the folder maximized. "C:\Windows\Explorer.exe" /select, "$(FULL_CURRENT_PAT...
by Yaron
30 Jun 2014 08:39
Forum: DOS Batch Forum
Topic: Notepad++ Open containing folder and SELECT FILE
Replies: 9
Views: 9053

Notepad++ Open containing folder and SELECT FILE

What should I add to the following command (in shortcuts.xml) so that Notepad++ would open the containing folder and also select the current file? <Command name="Open containing folder" Ctrl="no" Alt="no" Shift="no" Key="0">explorer $(CURRENT_DIRECTO...
by Yaron
04 Apr 2014 13:05
Forum: DOS Batch Forum
Topic: Compress to "FileName.xpi"
Replies: 26
Views: 18757

Re: Compress to "FileName.xpi"

Thanks again for your help. It's been a pleasure. :)
by Yaron
04 Apr 2014 09:44
Forum: DOS Batch Forum
Topic: Compress to "FileName.xpi"
Replies: 26
Views: 18757

Re: Compress to "FileName.xpi"

Using this batch file in your send to menu will allow you to rename the zip file under the cursor. Thank you foxidrive. I appreciate your continuous help. I'm afraid there was some misunderstanding. I meant zipping (calling the internal command) and renaming the new file by a single action. Is that...
by Yaron
04 Apr 2014 07:47
Forum: DOS Batch Forum
Topic: Compress to "FileName.xpi"
Replies: 26
Views: 18757

Re: Compress to "FileName.xpi"

That is correct.
Using the built-in "Compress to FileName.zip" ('FileName' value set in real time), and then renaming the newly created file - would indeed be much better.

Thank you.
by Yaron
03 Apr 2014 15:37
Forum: DOS Batch Forum
Topic: Compress to "FileName.xpi"
Replies: 26
Views: 18757

Re: Compress to "FileName.xpi"

Thanks again. I appreciate it. Let’s assume we have the following structure: A folder called TestMain. TestMain contains 2 files: A, B. And also a folder called TestSub. The default “Compress to” works as follows: If you select all items in TestMain and right-click ANY item, you get “Compress to Tes...
by Yaron
03 Apr 2014 11:55
Forum: DOS Batch Forum
Topic: Compress to "FileName.xpi"
Replies: 26
Views: 18757

Re: Compress to "FileName.xpi"

Hi foxidrive,
Thank you so much. It's really kind of you.

If anyone here happens to use WinRar, could you please help me emulate the default "Compress to FileName.zip" behavior with "Compress to FileName.xpi"?
by Yaron
03 Apr 2014 10:12
Forum: DOS Batch Forum
Topic: Compress to "FileName.xpi"
Replies: 26
Views: 18757

Re: Compress to "FileName.xpi"

Squashman wrote:If you post batch files on TechGuy try and put them in the DOS or Software Development Categories.

Thanks for the tip. :)
by Yaron
03 Apr 2014 10:09
Forum: DOS Batch Forum
Topic: Compress to "FileName.xpi"
Replies: 26
Views: 18757

Re: Compress to "FileName.xpi"

EDITED: @echo off :loop echo "%~1" if exist "%~1\" ( echo "%~1" is a folder ) else ( echo "%~1" is a file ) shift if not "%~1"=="" goto :loop pause Thank you foxidrive. I appreciate your help. With your permission, two more questions: 1) f...
by Yaron
02 Apr 2014 22:22
Forum: DOS Batch Forum
Topic: Compress to "FileName.xpi"
Replies: 26
Views: 18757

Compress to "FileName.xpi"

Hello, I use WinRar. In Options > Settings > Integration > User defined archive extensions, I've associated XPI and JA files (Firefox add-ons and omni.ja) with the program. I would like to add the following entries to Windows Explorer's context menu: 1) Compress to "FileName.xpi" 2) Compre...