PC Review


Reply
Thread Tools Rate Thread

Can't redirect output of NET SHARE THIS_SHARE=X:\SOME_FOLDER to a file

 
 
Frank B Denman
Guest
Posts: n/a
 
      24th Apr 2006
Hi Folks,

I suspect I'm overlooking something obvious.

This works:
NET SHARE>Shares.txt

But this produces an empty 0KB file:
NET SHARE THIS_SHARE=X:\SOME_FOLDER>Share_Output.txt

Any help much appreciated

Frank
Frank Denman
Denman Systems
(E-Mail Removed)
[and please remove the x fom the domainname]
Please delete the "x" from my email address.
 
Reply With Quote
 
 
 
 
foxidrive
Guest
Posts: n/a
 
      24th Apr 2006
On Sun, 23 Apr 2006 18:49:30 -0700, Frank B Denman wrote:

> Hi Folks,
>
> I suspect I'm overlooking something obvious.
>
> This works:
> NET SHARE>Shares.txt
>
> But this produces an empty 0KB file:
> NET SHARE THIS_SHARE=X:\SOME_FOLDER>Share_Output.txt
>
> Any help much appreciated


net share d=d:\ >file.txt 2>&1
 
Reply With Quote
 
Ed Siff
Guest
Posts: n/a
 
      26th Apr 2006
Frank B Denman wrote:

> Hi Folks,
>
> I suspect I'm overlooking something obvious.
>
> This works:
> NET SHARE>Shares.txt
>
> But this produces an empty 0KB file:
> NET SHARE THIS_SHARE=X:\SOME_FOLDER>Share_Output.txt
>
> Any help much appreciated


Maybe the share command is not working? I get an empty file and "System
error 2 has occurred, The system cannot find the file specified" error if
I try to share a non-existent folder.

Ed
 
Reply With Quote
 
Frank B Denman
Guest
Posts: n/a
 
      28th Apr 2006
Thanks!

Just what I needed!

Now, back to command reference to see why.....

Cheers,

Frank

On Mon, 24 Apr 2006 17:34:12 +1000, foxidrive <(E-Mail Removed)> wrote:

>On Sun, 23 Apr 2006 18:49:30 -0700, Frank B Denman wrote:
>
>> Hi Folks,
>>
>> I suspect I'm overlooking something obvious.
>>
>> This works:
>> NET SHARE>Shares.txt
>>
>> But this produces an empty 0KB file:
>> NET SHARE THIS_SHARE=X:\SOME_FOLDER>Share_Output.txt
>>
>> Any help much appreciated

>
>net share d=d:\ >file.txt 2>&1


Frank Denman
Denman Systems
(E-Mail Removed)
[and please remove the x fom the domainname]
Please delete the "x" from my email address.
 
Reply With Quote
 
Dean Wells [MVP]
Guest
Posts: n/a
 
      28th Apr 2006
I'd hazard a guess that "X:\SOME_FOLDER" doesn't exist as local media.

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l

Frank B Denman wrote:
> Thanks!
>
> Just what I needed!
>
> Now, back to command reference to see why.....
>
> Cheers,
>
> Frank
>
> On Mon, 24 Apr 2006 17:34:12 +1000, foxidrive <(E-Mail Removed)>
> wrote:
>
>> On Sun, 23 Apr 2006 18:49:30 -0700, Frank B Denman wrote:
>>
>>> Hi Folks,
>>>
>>> I suspect I'm overlooking something obvious.
>>>
>>> This works:
>>> NET SHARE>Shares.txt
>>>
>>> But this produces an empty 0KB file:
>>> NET SHARE THIS_SHARE=X:\SOME_FOLDER>Share_Output.txt
>>>
>>> Any help much appreciated

>>
>> net share d=d:\ >file.txt 2>&1

>
> Frank Denman
> Denman Systems
> (E-Mail Removed)
> [and please remove the x fom the domainname]
> Please delete the "x" from my email address.



 
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
redirect output bonzo Microsoft C# .NET 3 23rd May 2006 09:16 AM
Redirect directory output to file =?Utf-8?B?d29qbzI=?= Windows XP General 1 8th Jun 2005 01:30 AM
Redirect Output Christophe HELFER Microsoft VB .NET 0 2nd Mar 2004 08:00 AM
DOS output to LPT1: redirect to USB Steve Mehder Windows XP Print / Fax 0 2nd Sep 2003 02:21 AM
Redirect HTML Output to File? sc Microsoft ASP .NET 1 15th Jul 2003 04:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:48 AM.