PC Review


Reply
Thread Tools Rate Thread

cannot run correctly from shell... :(

 
 
Leszek Gruszka
Guest
Posts: n/a
 
      21st Oct 2004
Someone can help me?

Dim aplik as integer
aplik = Shell("""gpresult.exe"" >1.txt", , True)

I don't know how to run it properly. I'm getting an error at ">".

ERROR: Invalid argument/option - '>gpo.txt'.
Type "GPRESULT /?" for usage.


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      21st Oct 2004
Leszek,

You can try this sample, I do not know if you have to use
Application.StartupPath (copied the last text from Pieter) with this.

\\\
Dim p As New Process
p.StartInfo.UseShellExecute = False
p.StartInfo.Arguments = myargumentstring
p.StartInfo.WorkingDirectory = myworkdirectorystring
p.StartInfo.FileName =C:\myprogram
p.Start()
///
I hope this helps?

Cor


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      21st Oct 2004
"Leszek Gruszka" <(E-Mail Removed)> schrieb:
> Someone can help me?
>
> Dim aplik as integer
> aplik = Shell("""gpresult.exe"" >1.txt", , True)
>
> I don't know how to run it properly. I'm getting an error at ">".


">" is a feature of the command shell. Take a look at this sample:

<URL:http://dotnet.mvps.org/dotnet/samples/miscsamples/downloads/RedirectConsole.zip>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

 
Reply With Quote
 
Leszek Gruszka
Guest
Posts: n/a
 
      21st Oct 2004
Danke schon!
It helps me very much!


Uzytkownik "Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> napisal w
wiadomosci news:(E-Mail Removed)...
> "Leszek Gruszka" <(E-Mail Removed)> schrieb:
> > Someone can help me?
> >
> > Dim aplik as integer
> > aplik = Shell("""gpresult.exe"" >1.txt", , True)
> >
> > I don't know how to run it properly. I'm getting an error at ">".

>
> ">" is a feature of the command shell. Take a look at this sample:
>
>

<URL:http://dotnet.mvps.org/dotnet/sample...ds/RedirectCon
sole.zip>
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the shell from explorer.exe to custum shell for users and not administrator crookj@hotmail.com Microsoft Windows 2000 4 15th Feb 2012 08:03 PM
Custom Shell or Exploror based shell =?Utf-8?B?ZWNvdWxzb24=?= Windows XP Embedded 2 17th Feb 2006 06:37 PM
EWF Custom Shell no installer -> updating the shell in the field Mick Windows XP Embedded 12 3rd Mar 2004 09:02 AM
The shell was stopped and then restarted. By default, the shell is explorer.exe Russell Windows XP General 1 5th Feb 2004 08:30 AM
The shell was stopped and then restarted. By default, the shell is explorer.exe Russell Windows XP Help 1 5th Feb 2004 08:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:33 AM.