Solved

Send file to nerwork by way of shortcut

Posted on 2002-04-02
7
130 Views
Last Modified: 2012-05-05
I'm working on a program and I need
to send across a network
I want to do this by the simplest way
I though I could make a short cut to a folder on the network
and send the file to the short cut but that doesnt seem to work
any Ideas on how to send to a shortcut ?
or sending across the network if all else fales LOL

was trying to use filecopy sorce, desanation
0
Comment
Question by:TechJD
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 22

Accepted Solution

by:
rspahitz earned 200 total points
Comment Utility
Use the UNC.  i.e. use the fully-qualified path across the network, such as \\othercomputer\computersharedfolder\datasource\jdfolder\filetocreate.txt
0
 
LVL 1

Expert Comment

by:S2
Comment Utility
I don't know if you can copy to a shortcut but use file copy like this:

Filecopy "c:\testfile.txt","\\NetComputer\Sharedfolder\testfile.txt"

works for me fine!

S2
0
 
LVL 1

Author Comment

by:TechJD
Comment Utility
ok tested and both are right partly
Filecopy "c:\testfile.txt","\\NetComputer\Sharedfolder\testfile.txt"
works
had to change to
Filecopy "c:\testfile.txt","\\NetComputer\c\Sharedfolder\testfile.txt" (added \c - drive)
but only works of drive is maped
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 18

Expert Comment

by:bobbit31
Comment Utility
to map the drive programmatically:

Dim wsh As New IWshNetwork_Class

wsh.MapNetworkDrive "Z:", "\\tjhdev\TomcatHome"

'' do your filecopy

wsh.RemoveNetworkDrive "Z:"

make sure to reference Windows Script Host
0
 
LVL 18

Expert Comment

by:bobbit31
Comment Utility
though, it works for me even if i don't have the drive mapped
0
 
LVL 1

Author Comment

by:TechJD
Comment Utility
ok you guys ever feel like a total idot :)
well I do as of now
I had the right Idea wrong application of it LOL
I have to give the points to  rspahitz  as he did answer first
and of course he gets an A
I built a string and didnt check all of my array LOL
cause second error which I said it didnt work then LOL
sorry guys
thanks for the help
0
 
LVL 22

Expert Comment

by:rspahitz
Comment Utility
We've all been there!
I'm glad it was that easy...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now