Computing.Net > Forums > Windows XP > win XP redirect command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

win XP redirect command

Reply to Message Icon

Name: vande
Date: October 15, 2008 at 15:14:35 Pacific
OS: Windows xp, Windows
CPU/Ram: 2.4 quad core Intel
Product: Dell, Dell, Dell
Comment:

Ok so we use this custom script to take an inventory of the applications installed on a machine.
1. we psexec \\computer name cmd
A.this get us a CMD prmpt from the remote machine
2.then we have our tool or program that takes inventory on the remote machine by placing it VIA backdoor method. then we can execute it because remote cmd VIA psexec .... cmd
3. However the program makes an inventory on the remote c: < directory
4.then we have to bacjkdoor again to get the file.

Is there anyway pstools or a redirect command send the .txt document over the netwrok to the computer techs desktop ?


Like you can ipconfig > ipconfig.txt
it will send the ipconfig results to ipconfig.txt. Say i wanted to redirect it over the netwrok like ipconfig.txt >192.168.1.1

something to that nature ?
can i?
i have tried by hostname and ip but nothign so far anyone get the concept of what im trying to do ?

Learning in progress..........



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: October 15, 2008 at 15:47:07 Pacific
Reply:

You can if you set up a shared folder and put the file in there with the format:

\\192.168.1.1\sharedfolder\ipconfig.txt

Notice the double back slahes at the beginning. That's the important bit. Tells Windows to look for the address on the LAN otherwise it will default to http which is not what you want.

Stuart


0

Response Number 2
Name: vande
Date: October 15, 2008 at 16:20:42 Pacific
Reply:

I understand that but
\\192.168.1.1\sharedfolder\ipconfig.txt

i want to ipconfig > ipconfigresults.txt >\\192.168.1.1\sharedfolder\ipconfig.txt


Which will not work

Im trying to redirect to a .txt and then redirect the entire .txt file accross the network i mean could i do this with a net send or something?

I dont want nor need a file share althogh i do appreciate your suggestion

Learning in progress..........


0

Response Number 3
Name: StuartS
Date: October 15, 2008 at 16:42:42 Pacific
Reply:

Try this.

ipconfig > \\192.168.1.1\sharedfolder\ipconfig.txt

You a redirecting the output of ipconfig to the receiving computer without an intermediary file.

You are going to need some kind of shared space on the receiving computer to receive the file whichever method you use. The only other way is to set up an FTP server and thats a bit of overkill.

Stuart


0

Response Number 4
Name: wanderer
Date: October 15, 2008 at 16:45:22 Pacific
Reply:

call a batch file from the users logon script
assumes you map a drive to the users home folder

c:
ipconfig >[mapped drive home folder]config.txt
other commands >> [users home folder map]config.txt

Do a search for config.txt from all users home folders and cut them from there to where you want them

> redirects the output to the file
>> appends output to the file


0

Response Number 5
Name: aegis
Date: October 15, 2008 at 16:47:28 Pacific
Reply:

How about:
ipconfig > \\192.168.1.1\sharedfolder\ipconfig.txt

(edit) Oops, way too slow. :-)


0

Related Posts

See More



Response Number 6
Name: vande
Date: October 15, 2008 at 17:52:30 Pacific
Reply:

call a batch file from the users logon script
assumes you map a drive to the users home folder

c:
ipconfig >[mapped drive home folder]config.txt
other commands >> [users home folder map]config.txt

Do a search for config.txt from all users home folders and cut them from there to where you want them

Well this would work however im trying to run everything in the background you see. I dont want to have to make shared folders on my now the customers PC in fact the reason we do this is because the computer is up for refresh. In that i mean its old we are taking an inventory of thier apps currently installed in order to setup a new PC for them exactly the same so folder sharing is sort of out of the picture :( good idea though well actually now that i think of it that might work like this we would do sort of like ipconfig but the app is called quickaudit then the file would be placed on the root c: but i could call quickaudit then have it > to a public drive shared by all accross the network. Like its a universal shared network drive so its already mapped on the users PC so for example its called u: drive
i could
quickaudit.exe > u:/temp

Then on my system i could have a mapped right to u:/temp folder that exist so really would this work?

Learning in progress..........


0

Sponsored Link
Ads by Google
Reply to Message Icon

Is my motherboard fried? web page not opening



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: win XP redirect command

Win XP and command prompt problems www.computing.net/answers/windows-xp/win-xp-and-command-prompt-problems/135994.html

Norton Antivirus 2003 vs. Win XP www.computing.net/answers/windows-xp/norton-antivirus-2003-vs-win-xp/85425.html

Cannot install Win XP (SP2) www.computing.net/answers/windows-xp/cannot-install-win-xp-sp2/156409.html