thank you for your help vanvb, id like to do this myself tho, a combination of being to proud to admit defeat and knowing that a decent challange will improve my abilities more than taking an easier route!
Thanks again for your suggestion!
Tom
for anyone who was interested.. seems this is impossible using the WIN32_Process class, its made non interactive for security reasons apparently, guess it makes some sort of sence.
gonna try and do it by creating a scheduled task with a small amount of time added to the system time.
Hi,
Im trying to create a process on a remote computer, however i dont want the process to be hidden, i.e if the process is notpad.exe then i want a notepad to open on the remote computer.
However my current code just runs the process and does not show the window.
MINIMIZED_WINDOW is a...
"I misread your original post, the problem is that visual basic cannot recognise the copy command from shell."
^^
does anyone have a list of commands that can and cant be sent to shell to save me this hassle in the future?!
matt king - no, e: is a local drive
andy watt- cant remember, i think not as i didnt use it as a solution - will try again to satisfy your curiosity :)
Got it working, not an ideal solution by any means but did it by creating a batch file then running that from shell.. will slow my code down a hell of a lot when it has a list of machines to run the code on i think, never mind eh!
Set txtTryingBat = fso.createtextfile(App.Path &...
returns correct paths for both source and destination as follows:
copy "e:\nettools\vncinstall\winvnc.exe" "\\tomm\c$\program files\realvnc\winvnc\winvnc.exe"
the above is also the exact line I use succesfully at a command prompt
ill give it a try, but i dont see why shell would need to reference the vb fso, a far as vb is concerned there just strings, no file access is done until shell takes over...
the command works fine if i run it manually from cmd
I would use WMI - try modifying this code i wrote for creating registry keys
'*************** Set Registry Values ***************
strNewKey = "Software\MYNewKey\"
strMethodCreateKey = "CreateKey"
Set objRegistry =...
The following line of code is producing an error 53 file not found - app.path is E:\nettools and the file exists in e:\nettools\vncinstall\ ... any ideas?
runVNCexe = Shell("copy " & Chr$(34) & App.Path & "\vncinstall\winvnc.exe" & Chr$(34) & " " & Chr$(34) &...
Thanks for your suggestions.
In the end i made the batch add a particular string to the end of the text file it was creating, then stuck a loop so that the code would not continue unless this string was present...
======================================
Do Until intEndTest = 1
Do...
justa thought i had may not work..
why not put a hidden frame under the area u want to trigger it and trigger on that instead..
never tried it so may not work
By default, the Shell function runs other programs asynchronously, this causes me a problem in that a file hasnt been completly finished being written before vb tries to read it, casuing a list to not fully populate.
The time taken to write the file can vary immensly depending on the conditions...
Hi all,
My "problem" code is:
Set objWMIService = GetObject("winmgmts:"_ & "{impersonationLevel=impersonate}!\\" &_ frmSelect.cmbPCList.List(intCounter)_ & "\root\cimv2")
Set colRunningServices = objWMIService.ExecQuery("Select *_ from...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.