Sponsored Content
Full Discussion: Run Bash from Windows icon?
Special Forums Windows & DOS: Issues & Discussions Run Bash from Windows icon? Post 302925983 by cmccabe on Thursday 20th of November 2014 02:14:00 PM
Old 11-20-2014
Not sure why:

VB
Code:
 Private Sub CommandButton1_Click()
    Dim cmd As String
    Dim ret As Double
    Dim WshShell As Object
    Dim plink_object As Object

    ' Run Linux Commands
    Set WshShell = CreateObject("WScript.Shell")
    On Error Resume Next
    Set plink_object = WshShell.Run("C:\cygwin\bin\mintty.exe C:\cygwin\home\cmccabe\windows_annovar.sh 66 ""50602_15:56:31_15:56:11_15:56:21;50602_15:57:07_15:56:47_15:56:57""", 1)
    On Error GoTo 0
End Sub

The above code worked great, but now cygwin opens and then closes right away. Is there a better way? Thanks.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run the scripts from windows to UNIX

HI, I have one java program in windows OS. From that java program, I want to run the shell script file in the UNIX OS. Is it possible ??If yes, please post me the source code, how to do that ?? Thanks, Srinivas (3 Replies)
Discussion started by: srinivas peyyal
3 Replies

2. UNIX for Dummies Questions & Answers

Can I run unix in the same partition with windows?

Can I run unix in the same partition with windows xp? Because I have one for now.. Thank you for answers. (2 Replies)
Discussion started by: olddays
2 Replies

3. Shell Programming and Scripting

how to make your bash script run on a machine with csh and bash

hi, i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... (3 Replies)
Discussion started by: npatwardhan
3 Replies

4. UNIX for Dummies Questions & Answers

SSH program to run on Windows

Hey, For a couple of months, I was using SecureCRT which was satisfying all my needs (keyboard-interactive, sftp ...). Its licence got expired and I no longer want to pay for it. Is there any SSH program other than Putty, u would suggest as free or less expensive with a user interface like... (3 Replies)
Discussion started by: royalliege
3 Replies

5. Shell Programming and Scripting

OS X: How to run script from Finder as icon

Hello, Running Mac OS X 10.6.8. I have this very simple script within a directory where I play (modify, compile, run) with some java code. When I'm finished I run this script to erase all the .java and .class files and copy clean versions from the subdirectory Backup. I can run this script by... (0 Replies)
Discussion started by: HotPez
0 Replies

6. Shell Programming and Scripting

How to run Cygwin bash from windows scheduled task?

Hmmm.... I love these forums because I always get great prompt responses and I want to ask a question about running bash on windows. Is that allowed? Now I know I can install cygwin cron and run bash that way. Can I run bash from windows schedule task? How? thanks siegfried (1 Reply)
Discussion started by: siegfried
1 Replies

7. Debian

How to run windows application in Ubuntu?

HI ! all I have some model which works fine in windows 7 OS with matlab program I want to run all those from Ubuntu 12.04 32-bit OS. is there any provision to run windows applications? wine I tried, its not working, if any other available kindly explain the usage also Note : Dual boot ... (5 Replies)
Discussion started by: Akshay Hegde
5 Replies

8. Shell Programming and Scripting

How to run several bash commands put in bash command line?

How to run several bash commands put in bash command line without needing and requiring a script file. Because I'm actually a windows guy and new here so for illustration is sort of : $ bash "echo ${PATH} & echo have a nice day!" will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies

9. Shell Programming and Scripting

C Shell script not run with Windows 10

Hi all, I have a script has been writing for Unix or Linux. Now I want to run under Windows 10. is give me Error: if:Badly formed number How to fix this please help *** This is a copy of a part of Script. set absolute_gap = 0 if ($min_p_to_p != "" && $min_p_to_p != "N/A" && $min_p_to_t... (5 Replies)
Discussion started by: dovo
5 Replies
DtActionIcon(library call)												DtActionIcon(library call)

NAME
DtActionIcon -- get the icon information for an action SYNOPSIS
#include <Dt/Action.h> char *DtActionIcon( char *actionName); DESCRIPTION
The DtActionIcon function gets the icon information for an action. The actionName argument is the name of the action. DtActionIcon returns the name of the icon associated with an actionName action. If the action definition does not explicitly identify an icon name, this function returns the default action icon name, as described in dtactionfile(4) (``Action Selection''). The default action icon name can be customized using the actionIcon X resource. If there are multiple actionName actions, the string returned is the icon associated with the most general action. The most general action is the one with the lowest precedence, as described in dtactionfile(4) (``Action Selection''). RETURN VALUE
Upon successful completion, the DtActionIcon function returns a newly allocated copy of the icon name string ( ICON field) associated with the action; otherwise, it returns NULL. APPLICATION USAGE
The DtActionIcon function is useful for applications that provide a graphical interface to actions. The application should use XtFree(3) to free the icon name string returned by the DtActionIcon function. SEE ALSO
Dt/Action.h - DtAction(5), XtFree(3) dtactionfile(4), dtdtfile(4). DtActionIcon(library call)
All times are GMT -4. The time now is 08:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy