Results 1 to 4 of 4

Thread: Copy BATCH code?

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    10

    Question Copy BATCH code?

    Hiiiiii peaples!

    I need to learn me more BATCH programming!
    Now i would need to make a batch file that copy a file named MSWINSCK.OSX from H:\MS to C:\WINDOWS\System32

    Because i use my program often in school, then i need always put in MSWINSCK.OSX to system32 to get my prog to work!

    And its take soo long time to make it all the time

  2. #2

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    10

    Re: Copy BATCH code?

    Ok, i've get the codes!

    But also, if im gonna copy something to C:\Document and settings\ then its wont work! because it have spaces!!! HOW I FIX IT!!? the codes is like

    Copy "H:\MS\MSWINSCK.OSX" "C:\WINDOWS\system32\"
    That work but not
    Copy "H:\MS\Controller.exe" "C:\Documents and settings\"

  3. #3
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: Copy BATCH code?

    Don't you mean ocx? not osx?
    Also you do not want to manually install mswinsck because its included with the VB6 runtime.
    However, if you want be adventurous and possibly fubar their machine, copy mswinsck.ocx and remember to run regsrv32 mswinsck.ocx.

    That will work, assuming thats where the documents and settings are stored.
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  4. #4
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Copy BATCH code?

    Quote Originally Posted by TeamFlash
    Ok, i've get the codes!

    But also, if im gonna copy something to C:\Document and settings\ then its wont work! because it have spaces!!! HOW I FIX IT!!? the codes is like

    Copy "H:\MS\MSWINSCK.OSX" "C:\WINDOWS\system32\"
    That work but not
    Copy "H:\MS\Controller.exe" "C:\Documents and settings\"
    That's because there are spaces between "Documents and settings"

    try this

    Copy "H:\MS\Controller.exe" "C:\Docume~1\"

    Hope it helps...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width