| View previous topic :: View next topic |
| Author |
Message |
gfunk999 Newbie
Joined: 24 May 2006 Posts: 10 Location: USA
|
Posted: Tue Jun 06, 2006 9:15 am Post subject: Data/Settings Transfer Utility |
|
|
Hi ShinobiSoft and Freezing Fire, I meant no disrespect, I just figured I was out of my league, so I decided to kick myself out. LOL However, I must admit, it's discouraging not to see one reply to your post. It makes you feel not welcome.
I've been studying some of the codes posted here in efforts to learn this language as quick as possible.
i.e.
Advanced VDS Tutorial.dsc
Alarm Cloc.dsc
blackjack.dsc
findfiles.dsp
raycasting.dsp
taskmgr.dsp
winscrutinezer.dsc
and more...
I'm reposting my original thread...
Original Thread
Hi All,
I wrote a batch script for Windows XP Pro that automatically transfers files and user specific settings from an old PC to a new PC.
The scripts instructs the command processor to copy, delete, overwrite files, copy folder/sub folders, exclude files/folders, ignore errors, suppress overwrite confirmations, import/export registry settings files, updates local admin password on both PC's, a static IP is assigned to each PC by an individual script, and the old PC maps the new PC to start data transfer.
I've been getting familiar with VDS, but I need some direction on what functions or commands I should use in order to convert my script to VDS. Some of them are pretty much self explanatory. Please help me fill in the ? blanks.
Copy Files ===================== FILE COPY
Delete ======================== FILE DELETE
Copy Folders/Sub Folders ============ ? blank
Exclude Files/Folders ================ ? blank
Import/Export Registry keys ============ REGISTRY
Update Local Admin PW ================ runh net user (XP Command Line)
Assign Static IP Address to PC ============ ? blank
MAP Old PC to New PC ================= ? blank
Thank you in advance,
Gary
| Quote: | Hi gfunk999,
First of all welcome to the Vds World Forums.
My apologies for the lack of response. This is typical when the forum
users don't understand what you are getting at or what you are wanting.
I'm not sure if I read your original thread or not, but if I can help, I will do
what I can.
If you'd like to repost your thread, or continue it here, I'll see what I can
do for ya.
_________________
Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Tue Jun 06, 2006 12:51 pm Post subject: |
|
|
Hi GFUNK,
I guess I'm guilty of forgetting to respond to your original post. I saw it, and said to myself I do that stuff all the time, at work. (I was reading it at home). By the time I got to work I got so busy, I forgot to respond...
This time I'll remember! (When I get to work...)
You mentioned you wrote your script for XP Pro... Does that apply in all cases? My method for setting static IP's works only on W2k & XP...
I'll post some example code when I get to work...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Jun 06, 2006 1:18 pm Post subject: |
|
|
Hi Gary,
I can offer some assistance here. As I don't run Windows XP, although I
have it just don't like it, I can't answer some of your XP specific questions.
I'm more of a programmer than system administrator.
| Code: |
COPY FOLDERS/SUBFOLDERS = STRING LIST, DIRECTORY CREATE
EXCLUDE FOLDERS/SUBFOLDERS = STRING LIST
|
_________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Jun 07, 2006 2:28 am Post subject: |
|
|
for 'Copy Folders/Sub Folders ============ ? blank', you want to use FILE COPY
to exclude files and folders is more tricky (unless someone can think of an easy way)
1. create a list using LIST CREATE
2. load the list of files or folders into that list using LIST FILELIST
3. delete the entries from that list you don't want
serge _________________
|
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Wed Jun 07, 2006 2:48 am Post subject: |
|
|
I have been trying to post some example code here all day, but it would timeout every time. So, I am posting this to see if it's just this thread...
Hooligan
Edit: That worked... go figure... _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
gfunk999 Newbie
Joined: 24 May 2006 Posts: 10 Location: USA
|
Posted: Wed Jun 07, 2006 7:42 am Post subject: Thank You! |
|
|
You Guys Rock!
Hooligan
Yes, my script works for both W2k & XP, and it applies in all cases. I have two CD's, oldpc & newpc. The user must launch the CD's and the script takes care of the upgrade automatically. It transfers personal settings (i.e. Outlook settings, printers, network shares, env variables, favorites, apps, and more...), and it searches the entire drive for data based on an exclusion list. The script is a hit the way it is, but I think it would be more beneficial if the user could interact with the script using dialogs.
ShinobiSoft
This is a big help. Thank you
| Quote: | COPY FOLDERS/SUBFOLDERS = STRING LIST, DIRECTORY CREATE
EXCLUDE FOLDERS/SUBFOLDERS = STRING LIST |
Serge
Very well explained. It's very similiar the way I do it with my current script. Thank you for the post.
Thanks again for the replies... The feedback is very much appreciated. I feel like i'm on the right track now. I will try these tips later today when I wake up.
GF
[/code][/quote] |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Jun 07, 2006 9:21 am Post subject: |
|
|
glad to help
serge _________________
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Wed Jun 07, 2006 1:38 pm Post subject: |
|
|
Due to some problems which occured during the forum 'upgrade', it seems Hooligan cannot upload attachments? I'll take a look into what could be the problem; but he sent me an email with the message below
| Quote: |
From Hooligan:
Hi Gary,
Here goes another attempt...
Here is how I set a static ip:
|
| Code: |
:NetSH
%%int_enet = "Local Area Connection"
%%nsh1 = "netsh interface ip set address name = "
%%nsh2 = " source = static addr = 192.168.128.127 mask = 255.255.255.0"
runh cmd .exe /c %%nsh1@chr(034)%%int_enet@chr(034)%%nsh2,WAIT
rem note the file above should be cmd .exe with no space between the filename and extension, the forum wont let me post without changing that
exit
|
| Quote: |
This assumes that there is only one NIC installed, and it is using the default name... There are ways to determine the name programmatically, if need be.
Mapping the drive could be done by using the "net use" command...
Hooligan
|
|
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Thu Jun 08, 2006 11:40 am Post subject: |
|
|
Thanks PGWARE...
(So it was the cmd .exe that messed me up... eh?)
Hope this helps, Gary...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
gfunk999 Newbie
Joined: 24 May 2006 Posts: 10 Location: USA
|
Posted: Thu Jun 08, 2006 12:10 pm Post subject: Yes! |
|
|
Your example is perfect. I will apply the same principle to other command line tools. I'm working on my dialogs now to interact with the commands. I'm getting there... phew...
Thanks again Hooligan and PGWARE. |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sat Jun 10, 2006 6:37 pm Post subject: |
|
|
Hi
I was allways wondering if the vdsrun50.dll would work before Windows was fully loaded
Thats why I personally never got around to mess with making my own VDS win preload replacement scripts I guess.
Do I sound rather stupid again  |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Sun Jun 11, 2006 3:15 pm Post subject: |
|
|
Vtol,
In a word, Yes.
The trick is to get Windows to launch the program that early....
This would also assume you are not trying to use a function or command that requires something not yet loaded.
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
|