Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

vba run shell command with arguments

Sub ExecuteShell(path As String, ParamArray arg() As Variant)
    Dim element As Variant
    Dim cmd As String

    cmd = path & " " 'insert any pre-arguments charaters

    For Each element In arg
        cmd = cmd & element & ", "
    Next element

    'remove last comma
    cmd = Left(cmd, Len(cmd) - 2)

    Call Shell(cmd)

End Sub
Comment

PREVIOUS NEXT
Code Example
Shell :: ssh set owner 
Shell :: cordova could not install from "android" as it does not contain a package.json file. 
Shell :: ssh to lightsail 
Shell :: colcon reset build 
Shell :: npm install electron-reload 
Shell :: delete all files in a folder linux 
Shell :: repo tool depth 
Shell :: open . command 
Shell :: powershell decompress zip 
Shell :: codeception environnement variable not found 
Shell :: open a file from the integrated terminal in Visual Studio Code? 
Shell :: Installing gitflow locally 
Shell :: ssl certificat generation 
Shell :: 3.4.5 packet tracer configure trunks 
Shell :: powershell rename wildcard 
Shell :: linux convert to sha512 
Shell :: consolidated version yarn.lock 
Shell :: git find the commit that introduced a bug 
Shell :: compressing files on cmd line using winrar 
Shell :: dockerd failed to start daemon: failed to get temp dir to generate runtime scripts 
Shell :: workspace switch shortcur Gnome 
Shell :: docker laravel configuration ubuntu 
Shell :: wget -O /etc/enigma2/iptv.sh 
Shell :: kubernetes using hyper v 
Shell :: ansible select inventory file to adhoc command 
Shell :: active directory user kopieren per powershell 
Shell :: make a ZFS raid z volume 
Shell :: windows direct shortcut to programs and features 
Shell :: header 
Shell :: Ubuntu software in 22.04 store does not use system theme 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =